摘要: router.beforeEach((to, from, next) => { //这个是路由切换的时候可以获取到值,当前页面刷新获取不到 console.log(router.app.$store) //undefined } 解决方法:router.js // Vue.use(Router); 阅读全文
posted @ 2021-07-01 00:47 科技改变未来☆ 阅读(63) 评论(0) 推荐(0) 编辑