watch: { $route(val, oldval) { this.routeName = this.$route.name;
conlog.log(val);
conlog.log(oldval);
2 回答
慕码人8056858
TA贡献1803条经验 获得超6个赞
watch: {
$route(val, oldval) {
console.log(1111111)
console.log(val);
console.log(oldval)
if (val.query.currencyId) {
console.log('显示弹窗');
}
也不对喔
FFIVE
TA贡献1797条经验 获得超6个赞
watch: {
'$route': {
handler: function (to,from) {
},
deep: true,
immediate: true
}
}
- 2 回答
- 0 关注
- 497 浏览
添加回答
举报
0/150
提交
取消