feat:登录接口接入

This commit is contained in:
有来技术
2021-11-26 23:57:59 +08:00
parent 40aeda6bfc
commit d055a11921
10 changed files with 141 additions and 97 deletions

View File

@@ -69,6 +69,7 @@ const userModule: Module<UserState, RootStateTypes> = {
const accessToken = token_type + " " + access_token
Local.set("token", accessToken)
commit('SET_TOKEN', accessToken)
resolve(access_token)
}).catch(error => {
reject(error)
})