소스 검색

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';

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.