Selaa lähdekoodia

更友好的登录失效提示

Michael Wang 5 vuotta sitten
vanhempi
commit
d2f20a1efa
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/utils/axios.js

+ 1 - 1
src/utils/axios.js

@@ -98,7 +98,7 @@ qmInstance.interceptors.response.use(
     if (status == 403 || status == 401) {
       if (
         window.___lastInvalidDate === undefined ||
-        window.___lastInvalidDate < Date.now() - 300
+        window.___lastInvalidDate < Date.now() - 1000
       ) {
         Message.error({
           content: "登录失效,请重新登录!",