fix: renew without params

This commit is contained in:
zerosoul
2022-03-22 17:13:40 +08:00
parent a23800b042
commit 4e56f15e24
6 changed files with 15 additions and 11 deletions
+2 -4
View File
@@ -52,7 +52,7 @@ export default function useStreaming() {
const controller = new AbortController();
setStatus(StreamStatus.initializing);
const {
authData: { token, uid: loginUid },
authData: { token, refreshToken, uid: loginUid },
footprint: { afterMid, usersVersion },
} = store;
console.log("set uid use");
@@ -81,9 +81,7 @@ export default function useStreaming() {
) {
// 重新登录
if (response.status == 401) {
renewToken();
// dispatch(resetAuthData());
// return;
renewToken({ token, refreshToken });
}
// client-side errors are usually non-retriable:
throw new FatalError();