diff --git a/src/pages/technical-support/answer-center/index.vue b/src/pages/technical-support/answer-center/index.vue index 7ff750199bf56f0ee91ce71e15a60548e2448d3c..c53c19f8c57ed9ee2acf8bce9a75187adf61bfe2 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 eb1b4678059a68e40ffe0fa471826407f41ee347..1305085b3f533a7fb5ac61f080e36aae328af68a 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();