浏览代码

更友好的登录失效提示

Michael Wang 5 年之前
父节点
当前提交
d2f20a1efa
共有 1 个文件被更改,包括 1 次插入1 次删除
  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: "登录失效,请重新登录!",