updated

This commit is contained in:
landaiqing
2024-09-23 00:53:57 +08:00
parent 1539a2d9bb
commit 74dc2b36c8
9 changed files with 229 additions and 53 deletions

View File

@@ -26,7 +26,7 @@ const {onAuthRequired, onResponseRefreshToken} = createServerTokenAuthentication
// 刷新token
const user = useStore().user;
const res: any = await refreshToken(user.user?.refreshToken);
if (res.code === 0 && res.data) {
if (res.code === 200 && res.data) {
const {access_token, refresh_token, uid} = res.data;
user.user.accessToken = access_token;
user.user.refreshToken = refresh_token;