watch: { $route(val, oldval) { this.routeName = this.$route.name;
conlog.log(val);
conlog.log(oldval);
2 回答
隔江千里
TA贡献1906条经验 获得超10个赞
watch: {
$route(val, oldval) { console.log(1111111) console.log(val); console.log(oldval) if (val.query.currencyId) { console.log('显示弹窗'); } 也不对喔
添加回答
举报
0/150
提交
取消