From 1f92376f8026a5274527270438885c791616a696 Mon Sep 17 00:00:00 2001 From: "DESKTOP-RQ919RC\\Pc" <1300399510@qq.com> Date: Thu, 13 Nov 2025 19:20:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=A7=81=E4=BF=A1?= =?UTF-8?q?=E5=92=8C=E4=B8=BB=E9=A1=B5=E8=B7=B3=E8=BD=AC=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E5=8F=8A=E7=AE=80=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修正私信和主页跳转的URL格式错误 - 简化sendMessage和TAHomePage函数逻辑 - 移除dev脚本中的localhost限制 --- package.json | 2 +- pages/details/[id].vue | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index ab5d3d0..1b09ec1 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "version": "1.1.2", "scripts": { "build": "nuxi build --no-cache && mkdir .output\\server\\node_modules\\@popperjs && move .output\\server\\node_modules/@sxzz/popperjs-es .output\\server\\node_modules/@popperjs\\core", - "dev": "nuxt dev --host localhost", + "dev": "nuxt dev --host", "generate": "nuxt generate", "preview": "nuxt preview", "postinstall": "nuxt prepare" diff --git a/pages/details/[id].vue b/pages/details/[id].vue index 7a5caf5..1fbaf1a 100644 --- a/pages/details/[id].vue +++ b/pages/details/[id].vue @@ -1641,16 +1641,13 @@ const isBrowser = computed(() => { // 点击发送信息 const sendMessage = (uin, uid) => { - if (typeof messagePrivateItem == "function") { - messagePrivateItem({ uin: uin }); - return; - } else redirectToExternalWebsite(`https://bbs.gter.net/home.php?mod=space&showmsg=1&uid=${uin}&uid=${uid}`); + if (typeof messagePrivateItem == "function") messagePrivateItem({ uin, uid }); + else redirectToExternalWebsite(`https://f.gter.net/space??uin=${uin}&uid=${uid}`); }; // 点击ta的主页 -const TAHomePage = (uin, uid) => { - redirectToExternalWebsite(`https://bbs.gter.net/home.php?mod=space&uid=${uin}&uid=${uid}`); -}; +const TAHomePage = (uin, uid) => redirectToExternalWebsite(`https://f.gter.net/space??uin=${uin}&uid=${uid}`); + // 跳转 url const redirectToExternalWebsite = (url, target = "_blank") => {