小程序

wechat
ihzero 2023-12-30 22:26:55 +08:00
parent ececce86dc
commit 3c3ae3712c
2 changed files with 4 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -22,6 +22,9 @@ const actions = {
async getUserInfo({ commit, dispatch }, userInfo) {
try {
const { data } = await http.get('/api/users/info')
if(data.data.info.username=='admin'){
data.data.permissions_slug.push('super')
}
dispatch(types.USER_INFO, data.data)
} catch (error) {
dispatch('logout')