Sfoglia il codice sorgente

feat: 退出登录

sunxiao 3 mesi fa
parent
commit
0f9c7f4f73

+ 0 - 2
.env.development

@@ -11,5 +11,3 @@ VITE_AUDIO_BASE_URL = https://192.168.100.159
 
 # VITE_APP_BASE_API =  http://192.168.40.21:8001/
 
-VITE_APP_BASE_TEST = http://10.0.0.28:8080/
-VITE_APP_BASE_PROD = http://192.168.9.54:8080/

+ 1 - 4
.env.production

@@ -11,7 +11,4 @@ VITE_APP_BASE_API = '/voiceServe/'
 VITE_AUDIO_BASE_URL = https://192.168.100.159
 
 # 是否在打包时开启压缩,支持 gzip 和 brotli
-VITE_BUILD_COMPRESS = gzip
-
-VITE_APP_BASE_TEST = http://10.0.0.28:8080/
-VITE_APP_BASE_PROD = http://192.168.9.54:8080/
+VITE_BUILD_COMPRESS = gzip

File diff suppressed because it is too large
+ 1 - 1
hs-cti.es6.umd.prod.js


File diff suppressed because it is too large
+ 1 - 1
public/hs-cti.es6.umd.prod.js


File diff suppressed because it is too large
+ 12 - 0
src/hs-cti.es6.umd.prod.js


+ 3 - 1
src/layout/components/HeaderGroup/index.vue

@@ -50,7 +50,9 @@ const logout = () => {
     cancelButtonText: '取消',
     type: 'warning'
   }).then(async () => {
-    await voiceStore.unInit();
+    if (voiceStore.isAuthPane) {
+      await voiceStore.unInit();
+    }
     userStore.logOut().then(() => {
       location.href = '/index';
     })

+ 2 - 2
src/store/modules/voice.js

@@ -135,7 +135,7 @@ const useVoiceStore = defineStore('voice', () => {
 
   // 卸载实例
   const unInit = async () => {
-    return await HS_CTI.unInit()
+    return await HS_CTI.unInit();
   }
 
   // 下面开始事件监听
@@ -222,7 +222,7 @@ const useVoiceStore = defineStore('voice', () => {
       // SDK 日志等级
       loggerLevel: LoggerLevels.debug,
       // 环境变量
-      env: 'development'
+      env: import.meta.env.VITE_APP_ENV,
     })
 
     HS_CTI.init();

+ 1 - 1
src/views/system/user/index.vue

@@ -420,7 +420,7 @@ function getDeptTree() {
 /** 查询用户列表 */
 function getList() {
   loading.value = true;
-  listUser(proxy.addDateRange(queryParams.value, dateRange.value)).then(res => {
+  listUser(proxy.addDateRange({...queryParams.value, type: 1}, dateRange.value)).then(res => {
     loading.value = false;
     userList.value = res.rows;
     total.value = res.total;

Some files were not shown because too many files changed in this diff