增加上传的动态路径方法 增加用户录入功能 修复了切换账号必须刷新才能改变菜单的bug

This commit is contained in:
pixel
2019-12-15 15:10:40 +08:00
parent 4e704c484a
commit 13c7653462
10 changed files with 191 additions and 113 deletions
+1
View File
@@ -30,6 +30,7 @@ export const user = {
state.token = ""
state.expiresAt = ""
router.push({ name: 'login', replace: true })
window.location.reload()
},
ResetUserInfo(state, userInfo = {}) {
state.userInfo = {...state.userInfo,