0条评论
还没有人评论过~
这里可以 console.log 打印,
但是如果打断点是获取不到的,请问有没有办法获取
具体的请看这里
https://www.cnblogs.com/laozhang-is-phi/p/9658019.html
import store from '@/vuex/store'
router.beforeEach((to, from, next) => {
//console.log(to.matched)
console.log(store.state);
next();
});