From dbd2b024c2e59edb0e1ce39cd9fb4d7555b15e06 Mon Sep 17 00:00:00 2001 From: xuyiming Date: Tue, 3 Nov 2020 10:41:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E7=AD=94=E4=B8=AD=E5=BF=83=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E5=9C=B0=E5=9D=80fixed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/technical-support/answer-center/index.vue | 4 ++-- src/pages/user/questions-answers/my-qa.vue | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/pages/technical-support/answer-center/index.vue b/src/pages/technical-support/answer-center/index.vue index 7ff7501..c53c19f 100644 --- a/src/pages/technical-support/answer-center/index.vue +++ b/src/pages/technical-support/answer-center/index.vue @@ -104,9 +104,9 @@ export default { }, intoListPage(type) { if (type === 0) { - this.$router.push("/qa/questions"); + this.$router.push("/qa/my_qa?name=0"); } else { - this.$router.push("/qa/answers"); + this.$router.push("/qa/my_qa?name=1"); } }, }, diff --git a/src/pages/user/questions-answers/my-qa.vue b/src/pages/user/questions-answers/my-qa.vue index eb1b467..1305085 100644 --- a/src/pages/user/questions-answers/my-qa.vue +++ b/src/pages/user/questions-answers/my-qa.vue @@ -346,6 +346,11 @@ export default { }); }, }, + created() { + if (this.$route.query.name !== undefined) { + this.activeName = this.$route.query.name; + } + }, mounted() { this.getUserQA(); this.getQList(); -- 2.26.0