Commit dbd2b024 authored by 徐一鸣's avatar 徐一鸣

问答中心跳转地址fixed

parent af6f545d
......@@ -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");
}
},
},
......
......@@ -346,6 +346,11 @@ export default {
});
},
},
created() {
if (this.$route.query.name !== undefined) {
this.activeName = this.$route.query.name;
}
},
mounted() {
this.getUserQA();
this.getQList();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment