浏览代码

试用平台bug修复

hbchen 1 年之前
父节点
当前提交
8266a418a3
共有 2 个文件被更改,包括 2 次插入3 次删除
  1. 1 1
      src/api/http.js
  2. 1 2
      src/utils/TimeOnPage.js

+ 1 - 1
src/api/http.js

@@ -51,13 +51,13 @@ function checkStatus(response) {
     } else if (res.Ret == 403) {
       bus.$message.error(res.Msg);
     } else if (res.Ret === 408) {
+      localStorage.setItem("auth", "")
       bus
         .$alert(res.Msg, "提示", {
           showClose: false,
         })
         .then(() => {
           window.location.href = window.location.origin + '/login';
-
         });
     }
     return res;

+ 1 - 2
src/utils/TimeOnPage.js

@@ -1,13 +1,12 @@
 //计算账号累计活跃时长
 import global from '@/config/setting';
 import {timeOnPage} from '@/api/api.js';
+
 //活跃时间间隔 (s)
 const TimeInterval = 60*10
 //页面停留时间 (s)
 let stayTime = 0
 
-
-
 let timer = null
 
 //打开计时器