摘要: 在router.beforeEach()里无法直接使用this.$store.commit,解决方法很简单,导入即可: import store from "../store/index"; 然后调用时直接store.commit即可 阅读全文
posted @ 2022-03-08 14:40 隐形的喷火龙 阅读(2627) 评论(0) 推荐(0)