From 0d70b7e9641ef60ade4bef64d94b93a4dde8c86e Mon Sep 17 00:00:00 2001 From: aBin Date: Thu, 3 Mar 2022 17:57:49 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=9F=A5=E5=85=AC=E5=91=8A=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/LeftNav/LeftNav.vue | 11 ++++++----- src/views/OtherPages/NoticeNotice.vue | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/LeftNav/LeftNav.vue b/src/components/LeftNav/LeftNav.vue index 4a325e0..1d21398 100644 --- a/src/components/LeftNav/LeftNav.vue +++ b/src/components/LeftNav/LeftNav.vue @@ -58,20 +58,21 @@ export default { methods: { changeQuery(code, url, item) { + console.log('code, url, item: ', code, url, item); + console.log('url: ', url); let childCode = code; if (item && item.children && item.children.length) { childCode = item.children[0].code; } if (!url) { if (this.code && code !== this.code) { - // this.$router.push({ query: { code: childCode } }); - const path = window.location.href.split('?') - window.location.href= path[0]+`?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) { - const path = window.location.href.split('?') - window.location.href= path[0]+`?code=${code}` + const path = window.location.href.split('?'); + window.location.href = path[0] + `?code=${code}`; } } else { if (url === '/') { diff --git a/src/views/OtherPages/NoticeNotice.vue b/src/views/OtherPages/NoticeNotice.vue index a8b67aa..061cb6a 100644 --- a/src/views/OtherPages/NoticeNotice.vue +++ b/src/views/OtherPages/NoticeNotice.vue @@ -127,7 +127,7 @@ export default { }, changeCode(code) { this.code = code; - this.introId = ''; + // this.introId = ''; }, changeYear(year) { this.year = year;