在路由守卫以前拿到vuex中异步请求数据——vuex中watch方法

vuex中watch的使用 问题:在全局路由守卫中想要经过store拿到异步请求的数据,没法拿到。vue 咱们常见使用vuex,通常是这样的:web store模块文件写相关的数据信息,模块一test.js:vuex export default { state: { obj: { count: 2 } }, mutations: { add(sta
相关文章
相关标签/搜索