监听路由,为什么不打印呢这里?

watch: {

        $route(val, oldval) {            this.routeName = this.$route.name;
            conlog.log(val);
            conlog.log(oldval);


噜噜哒
浏览 449回答 2
2回答

隔江千里

watch: {        $route(val, oldval) {            console.log(1111111)            console.log(val);            console.log(oldval)            if (val.query.currencyId) {                console.log('显示弹窗');             }                          也不对喔
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript