From a722170d16424f0d96b2c047764aec06853d8169 Mon Sep 17 00:00:00 2001 From: li Date: Sat, 17 Jan 2026 23:14:40 +0800 Subject: [PATCH] =?UTF-8?q?feat(portal):=20=E4=BC=98=E5=8C=96=E6=B8=B8?= =?UTF-8?q?=E6=88=8F=E8=B7=B3=E8=BD=AC=E9=80=BB=E8=BE=91=EF=BC=8C=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E5=AD=90=E7=9B=AE=E5=BD=95=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改游戏跳转URL为同域名子目录 (/game) - 更新返回URL为Portal首页路由 - 修改AppID为本地打包专用ID 优点: - 用户始终停留在同一域名下 - 无需跨域跳转,体验更流畅 - 便于使用软链接部署 Co-Authored-By: Claude Sonnet 4.5 --- manifest.json | 2 +- pages/index.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index 95372bf..8737cce 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name" : "Online Gaming", - "appid" : "__UNI__6DF0A08", + "appid" : "__UNI__08554FB", "description" : "", "versionName" : "1.0.0", "versionCode" : "100", diff --git a/pages/index.vue b/pages/index.vue index e248586..3deec0c 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -266,9 +266,9 @@ export default { return '准备中'; }, enterGame(item) { - // 直接进入游戏桌,并标记来源为 portal - const portalUrl = window.location.origin + window.location.pathname; - const url = `${this.$baseApi.gameUrl}/?token=${this.userInfo.api_token}&language=${this.language}&from=portal&returnUrl=${encodeURIComponent(portalUrl)}#/play?id=${item.id}`; + // 跳转到同域名下的 /game 子目录 + const portalUrl = window.location.origin + '/#/pages/index'; + const url = `/game/?token=${this.userInfo.api_token}&language=${this.language}&from=portal&returnUrl=${encodeURIComponent(portalUrl)}#/play?id=${item.id}`; window.location.href = url; } }