import store from '../../store/index'
...
router.beforeEach((to, from, next) => {
store.commit('UPDATE_CURRENT_PATH', to.fullPath)
})
...
import store from '../../store/index'
...
router.beforeEach((to, from, next) => {
store.commit('UPDATE_CURRENT_PATH', to.fullPath)
})
...
本文标题:vue beforeRouter中使用store
本文链接:https://www.haomeiwen.com/subject/cutkoqtx.html
网友评论