瀏覽代碼

feat: 变更文件

sunxiao 4 月之前
父節點
當前提交
39d68a8f33
共有 3 個文件被更改,包括 12 次插入7 次删除
  1. 3 3
      hs-cti.es6.umd.prod.js
  2. 3 3
      public/hs-cti.es6.umd.prod.js
  3. 6 1
      src/utils/request.js

文件差異過大導致無法顯示
+ 3 - 3
hs-cti.es6.umd.prod.js


文件差異過大導致無法顯示
+ 3 - 3
public/hs-cti.es6.umd.prod.js


+ 6 - 1
src/utils/request.js

@@ -6,6 +6,7 @@ import { tansParams, blobValidate } from '@/utils/ruoyi'
 import cache from '@/plugins/cache'
 import { saveAs } from 'file-saver'
 import useUserStore from '@/store/modules/user'
+import useVoiceStore from "@/store/modules/voice";
 
 let downloadLoadingInstance;
 // 是否显示重新登录
@@ -84,7 +85,11 @@ service.interceptors.response.use(res => {
     if (code === 401) {
       if (!isRelogin.show) {
         isRelogin.show = true;
-        ElMessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning' }).then(() => {
+        ElMessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning' }).then(async () => {
+          const voiceStore = useVoiceStore();
+          if ( voiceStore.isAuthPane ) {
+            await voiceStore.unInit();
+          }
           isRelogin.show = false;
           useUserStore().logOut().then(() => {
             location.href = '/index';

部分文件因文件數量過多而無法顯示