浏览代码

替换ws地址

Renxy 1 年之前
父节点
当前提交
a43d8aa0de
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/pages/Cad/detail.js
  2. 1 1
      src/pages/Cad/index.js

+ 1 - 1
src/pages/Cad/detail.js

@@ -17,7 +17,7 @@ const CadDeTail = () => {
 
 
     ZwCloud2D.ZwDataProcessor.ZwSetConnectUrl(
     ZwCloud2D.ZwDataProcessor.ZwSetConnectUrl(
       'https://cad.greentech.com.cn',
       'https://cad.greentech.com.cn',
-      'https://cad.greentech.com.cn:5121',
+      'wss://cad.greentech.com.cn:5121',
       'https://cad.greentech.com.cn',
       'https://cad.greentech.com.cn',
     );
     );
     ZwCloud2D.ZwDataProcessor.ZwSetLoadDwg(path);
     ZwCloud2D.ZwDataProcessor.ZwSetLoadDwg(path);

+ 1 - 1
src/pages/Cad/index.js

@@ -192,7 +192,7 @@ const CadDemo = () => {
   useEffect(() => {
   useEffect(() => {
     ZwCloud2D.ZwDataProcessor.ZwSetConnectUrl(
     ZwCloud2D.ZwDataProcessor.ZwSetConnectUrl(
       'https://cad.greentech.com.cn', //47.111.24.13
       'https://cad.greentech.com.cn', //47.111.24.13
-      'https://cad.greentech.com.cn:5121',
+      'wss://cad.greentech.com.cn:5121',
       'https://cad.greentech.com.cn',
       'https://cad.greentech.com.cn',
     );
     );
   }, []);
   }, []);