提交 f4001bcf authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 856a5fd3
......@@ -39,7 +39,6 @@ const store = new Vuex.Store({
})
},
async checkLogin({ commit, dispatch }) {
await dispatch('getPermissions')
const isLogin = await getUser()
.then(response => {
if (response.code === 0) {
......@@ -54,6 +53,7 @@ const store = new Vuex.Store({
commit('setUser', {})
return false
})
await dispatch('getPermissions')
return isLogin
},
// 获取所有权限列表
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论