瀏覽代碼

websocket

seimin 1 年之前
父節點
當前提交
f39840988c
共有 2 個文件被更改,包括 9 次插入9 次删除
  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
   specimenViewHost: `${protocolName}//${domainName}:${port}/specimenView`, //业务视图地址
10
   specimenViewHost: `${protocolName}//${domainName}:${port}/specimenView`, //业务视图地址
11
   bigScreenHost: `${protocolName}//${domainName}:${port}/largeScreen`, //大屏地址地址
11
   bigScreenHost: `${protocolName}//${domainName}:${port}/largeScreen`, //大屏地址地址
12
   bigScreenHost2: `${protocolName}//${domainName}:${port}/largeScreen2`, //大屏地址2地址
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
 export default baseUrl;
19
 export default baseUrl;

+ 4 - 4
upload/development.js

@@ -38,13 +38,13 @@ function runTask() {
38
   const isNodeVersionLt17 = parseInt(process.version) < 17;
38
   const isNodeVersionLt17 = parseInt(process.version) < 17;
39
   const execStr = isNodeVersionLt17 ? 'npm run build' : 'npm run build:17';
39
   const execStr = isNodeVersionLt17 ? 'npm run build' : 'npm run build:17';
40
   if (shell.exec(execStr).code == 0) {
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
         console.log("-----打包成功-----");
43
         console.log("-----打包成功-----");
44
         //提交上传
44
         //提交上传
45
         connectSSh();
45
         connectSSh();
46
-      }
47
-    }
46
+      // }
47
+    // }
48
   }
48
   }
49
 }
49
 }
50
 runTask()
50
 runTask()