Browse Source

websocket

seimin 1 year ago
parent
commit
f39840988c
2 changed files with 9 additions and 9 deletions
  1. 5 5
      src/assets/js/http.ts
  2. 4 4
      upload/development.js

+ 5 - 5
src/assets/js/http.ts

@@ -10,10 +10,10 @@ const baseUrl: baseUrlType = {
10 10
   specimenViewHost: `${protocolName}//${domainName}:${port}/specimenView`, //业务视图地址
11 11
   bigScreenHost: `${protocolName}//${domainName}:${port}/largeScreen`, //大屏地址地址
12 12
   bigScreenHost2: `${protocolName}//${domainName}:${port}/largeScreen2`, //大屏地址2地址
13
-  homeWs: `${wsName}://${domainName}:8080/webSocket/index`, //websocket首页地址
14
-  mainWs: `${wsName}://${domainName}:8080/webSocket/message/manage`, //websocket管理端地址
15
-  nurseWs: `${wsName}://${domainName}:8080/webSocket/message/nurse`, //websocket护士端地址
16
-  fwtWs: `${wsName}://${domainName}:8080/webSocket/message/ser`, //websocket服务台地址
17
-  phoneWs: `${wsName}://${domainName}:8080/webSocket/message/phone`, //websocket服务台来电地址
13
+  homeWs: `${wsName}://${domainName}:${port}/webSocket/index`, //websocket首页地址
14
+  mainWs: `${wsName}://${domainName}:${port}/webSocket/message/manage`, //websocket管理端地址
15
+  nurseWs: `${wsName}://${domainName}:${port}/webSocket/message/nurse`, //websocket护士端地址
16
+  fwtWs: `${wsName}://${domainName}:${port}/webSocket/message/ser`, //websocket服务台地址
17
+  phoneWs: `${wsName}://${domainName}:${port}/webSocket/message/phone`, //websocket服务台来电地址
18 18
 };
19 19
 export default baseUrl;

+ 4 - 4
upload/development.js

@@ -38,13 +38,13 @@ function runTask() {
38 38
   const isNodeVersionLt17 = parseInt(process.version) < 17;
39 39
   const execStr = isNodeVersionLt17 ? 'npm run build' : 'npm run build:17';
40 40
   if (shell.exec(execStr).code == 0) {
41
-    if (shell.exec(`find dist -name '*.js' -print0 | xargs -0 gzip -k`).code == 0) {
42
-      if (shell.exec(`find dist -name '*.css' -print0 | xargs -0 gzip -k`).code == 0) {
41
+    // if (shell.exec(`find dist -name '*.js' -print0 | xargs -0 gzip -k`).code == 0) {
42
+      // if (shell.exec(`find dist -name '*.css' -print0 | xargs -0 gzip -k`).code == 0) {
43 43
         console.log("-----打包成功-----");
44 44
         //提交上传
45 45
         connectSSh();
46
-      }
47
-    }
46
+      // }
47
+    // }
48 48
   }
49 49
 }
50 50
 runTask()