fix: 修复token失效时更新token的bug
This commit is contained in:
parent
261abacc87
commit
0d1f0255c7
@ -80,11 +80,7 @@ const request = (config) => {
|
||||
if (code === 10003) {
|
||||
removeStorage('starCloudToken')
|
||||
removeStorage('starCloudUser')
|
||||
const loginResult = await starCloud.login({
|
||||
username: starCloud.accountInfo.username,
|
||||
password: starCloud.accountInfo.password,
|
||||
uid: starCloud.accountInfo.uid
|
||||
})
|
||||
const loginResult = await starCloud.login(starCloud.accountInfo.uid, true)
|
||||
if (loginResult.code === Result.Success.code) {
|
||||
return resolve(await request(config))
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user