PIPIONE
你的store文件:const store = new Vuex.Store({...})export default store你的路由文件:import store from '你的store文件路径'router.beforeEach((to, from, next) => { console.log(store.state.user_info)
})