flat: 登陆

This commit is contained in:
Apcallover
2024-03-20 20:21:25 +08:00
parent 0e959356c3
commit e1726ca03a
6 changed files with 99 additions and 29 deletions

View File

@@ -31,7 +31,8 @@ const auth = {
}) || false,
authInfo: getStore({
name: 'authInfo'
}) || []
}) || [],
loginType: 0, // 0
},
actions: {
//刷新token
@@ -109,6 +110,9 @@ const auth = {
}
},
mutations: {
changeLoginType(state, payload) {
state.loginType = payload
},
SET_AUTH_LABOR: (state, status) => {
state.laborState = status
setStore({