ZaiZai 6 months ago
parent
commit
5c17eb9d1e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      scripts/build/config.js

+ 2 - 1
scripts/build/config.js

@@ -49,11 +49,12 @@ if(!fs.existsSync(cacheFilePath)) {
 const indexJson = JSON.parse(indexJsonContent);
 indexJson.version = dateFormat(new Date());             //版本号
 indexJson.target = "http://127.0.0.1:8090";             //接口地址
-indexJson.socket = "wss://measure.hczcxx.cn/websocket"; //接口地址
 //本地模式,开启后,将关闭https强转、截图等相关功能
 if (isNullES(local) || local === 'undefined') {
+    indexJson.socket = "wss://measure.hczcxx.cn/websocket";
     indexJson.localModel = false;
 } else {
+    indexJson.socket = "";
     indexJson.localModel = true;
 }
 indexJson.smsPhone = "";                            //短信接口手机号