From 02008db387b69b8afdf0b451d60143e48290e94b Mon Sep 17 00:00:00 2001 From: song Date: Thu, 3 Mar 2022 17:41:01 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E7=A0=81=E6=A0=B7=E5=BC=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 6 +++--- src/components/LeftNav/LeftNav.vue | 4 +++- src/components/ListPage/ListPage.vue | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.env.production b/.env.production index 028ff9b..4efdea3 100644 --- a/.env.production +++ b/.env.production @@ -1,10 +1,10 @@ VUE_APP_MODE=production VUE_APP_NODE_ENV=production -VUE_APP_SCENE=/ +VUE_APP_SCENE=/v1.0/datang/ VUE_APP_BASE_URL=http://10.119.190.12:8000 VUE_APP_API_URL=http://10.119.190.12:8000/v1.0 VUE_APP_PROXY_URL=/v1.0 -VUE_APP_PUBLIC_PATH= -VUE_APP_MSG_URL=wss://192.168.101.69:8000/websocket/message/v4.0/ws +VUE_APP_PUBLIC_PATH=/v1.0/datang +VUE_APP_MSG_URL=wss://10.119.190.12:8000/websocket/message/v4.0/ws VUE_APP_TITLE=大唐 VUE_APP_DESCRIPTION=大唐 diff --git a/src/components/LeftNav/LeftNav.vue b/src/components/LeftNav/LeftNav.vue index 3626e12..4a325e0 100644 --- a/src/components/LeftNav/LeftNav.vue +++ b/src/components/LeftNav/LeftNav.vue @@ -64,7 +64,9 @@ export default { } if (!url) { if (this.code && code !== this.code) { - this.$router.push({ query: { code: childCode } }); + // this.$router.push({ query: { code: childCode } }); + const path = window.location.href.split('?') + window.location.href= path[0]+`?code=${childCode}` this.$emit('changeCode', code); this.childCode = code; } else if (code === this.code) { diff --git a/src/components/ListPage/ListPage.vue b/src/components/ListPage/ListPage.vue index 4adc673..cc9189f 100644 --- a/src/components/ListPage/ListPage.vue +++ b/src/components/ListPage/ListPage.vue @@ -10,7 +10,7 @@ -
+