ZaiZai 1 年之前
父节点
当前提交
cc0c6c1431
共有 3 个文件被更改,包括 3 次插入4 次删除
  1. 0 1
      src/components/hc-tasks-user/modules/user-modal.vue
  2. 2 2
      src/config/index.json
  3. 1 1
      src/plugins/HcSocket.js

+ 0 - 1
src/components/hc-tasks-user/modules/user-modal.vue

@@ -384,7 +384,6 @@ const userSortFinish = (data) => {
     console.log(data)
     console.log(data)
 }
 }
 
 
-
 //确定选择
 //确定选择
 const confirmLoading = ref(false)
 const confirmLoading = ref(false)
 const confirmClick = async () => {
 const confirmClick = async () => {

+ 2 - 2
src/config/index.json

@@ -1,8 +1,8 @@
 {
 {
     "version": "20230607160059",
     "version": "20230607160059",
     "target1": "http://127.0.0.1:8090",
     "target1": "http://127.0.0.1:8090",
-    "target": "http://192.168.0.125:8090",
-    "target3": "http://39.108.216.210:8090",
+    "target2": "http://192.168.0.125:8090",
+    "target": "http://39.108.216.210:8090",
     "target4": "http://192.168.0.109:8090",
     "target4": "http://192.168.0.109:8090",
     "target5": "http://192.168.0.102:8090",
     "target5": "http://192.168.0.102:8090",
     "smsPhone": "",
     "smsPhone": "",

+ 1 - 1
src/plugins/HcSocket.js

@@ -103,7 +103,7 @@ class HcSocket {
 
 
     // 指数退避策略
     // 指数退避策略
     getReconnectInterval(attempt) {
     getReconnectInterval(attempt) {
-        return Math.min(1000 * Math.pow(2, attempt), 30000)
+        return Math.min(1000 * Math.pow(2, attempt), this.interval)
     }
     }
 
 
     handleMultipleTabs() {
     handleMultipleTabs() {