From 2487b08c22921a665e1453413db065e165f0a9c1 Mon Sep 17 00:00:00 2001 From: aBin Date: Mon, 7 Mar 2022 16:52:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=89=E7=BA=A7=E7=9B=AE=E5=BD=95=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E5=BD=93=E5=89=8D=E5=88=97=E8=A1=A8=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 12 ++++++------ src/components/Location/Location.vue | 8 +------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.env.production b/.env.production index 2996652..7f3fb25 100644 --- a/.env.production +++ b/.env.production @@ -1,10 +1,10 @@ VUE_APP_MODE=production VUE_APP_NODE_ENV=production -VUE_APP_SCENE=/datang/ -VUE_APP_BASE_URL=https://test.tall.wiki -VUE_APP_API_URL=https://test.tall.wiki/datang/v1.0 -VUE_APP_PROXY_URL=/datang/v1.0 -VUE_APP_PUBLIC_PATH=/datang -VUE_APP_MSG_URL=wss://test.tall.wiki/websocket/message/v4.0/ws +VUE_APP_SCENE=/v1.0/datang/ +VUE_APP_BASE_URL=http://127.0.0.1:8000 +VUE_APP_API_URL=http://127.0.0.1:8000/v1.0 +VUE_APP_PROXY_URL=/v1.0 +VUE_APP_PUBLIC_PATH=/v1.0/datang +VUE_APP_MSG_URL=wss://127.0.0.1:8000/websocket/message/v4.0/ws VUE_APP_TITLE=大唐 VUE_APP_DESCRIPTION=大唐 diff --git a/src/components/Location/Location.vue b/src/components/Location/Location.vue index 4f1f253..463c878 100644 --- a/src/components/Location/Location.vue +++ b/src/components/Location/Location.vue @@ -1001,8 +1001,7 @@ export default { if (itemC.children && itemC.children.length) { for (let m = 0; m < itemC.children.length; m++) { const itemD = itemC.children[m]; - if (itemD.code === this.code && m !== 0) { - console.log('itemC: ', itemC); + if (itemD.code === this.code) { this.$router.push({ path: item.url, query: { code: itemC.children[0].code }, @@ -1019,26 +1018,21 @@ export default { let titleObj = {}; let lists = []; for (let i = 0; i < this.tabList.length; i++) { - console.log('111111111'); if (this.tabList[i].url === path) { titleObj = { ...this.tabList[i] }; lists = [...this.tabList[i].children]; } } if (lists[0].children && lists[0].children.length) { - console.log('2222222222'); this.$router.push({ path: titleObj.url, query: { code: lists[0].children[0].code }, }); - // this.code = lists[0].children[0].code; } else { - console.log('333333333333'); this.$router.push({ path: titleObj.url, query: { code: lists[0].code }, }); - // this.code = lists[0].code; } }, },