watch: {
$route() {
//解决方法监听路由变化并执行相应方法即可
if (this.$route.query.ishit) {
console.log(123);
this.isshowModel = true
this.domainlist = []
this.listdata(this.$store.state.keyword, this.$route.query.ishit);
} else {
console.log(321);
this.listdata(this.$store.state.keyword, this.$route.query.ishit);
}
},
},
06-16
5841
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
10-22
1109
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交