From 8370598e17727fce8c843741c22f14df91b2de7d Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Sat, 25 Nov 2023 15:41:26 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=20=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/default/config.js | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/public/default/config.js b/public/default/config.js index c6c15621..25d86329 100644 --- a/public/default/config.js +++ b/public/default/config.js @@ -1,16 +1,29 @@ /** - * config 非Nginx部署可使用的配置参数 - * Configuration parameters available for non Nginx deployments using config + * =============== Zh =============== + * - Nginx部署 + * 删除loading.js同级下同名文件,Nginx代理地址: /omc-api + * + * Nginx Deployment + * Delete the file with the same name under the same level of loading.js, Nginx proxy address: /omc-api + * + * - 非Nginx部署 + * 请将当前文件与loading.js同级,将host变量值修改为数据服务访问地址 + * !!!注意: 修改当前文件后,建议关闭浏览器后重新访问 + * + * Non-Nginx Deployment + * Please make the current file the same level as the loading.js, change the host variable value to the data service access address + * !!! Note: After modifying the current file, it is recommended to revisit it after closing the browser. + * */ (function () { - // host = ip:prot - const host = "192.168.2.166:3030"; + // host = ip:prot + const host = '192.168.2.166:3030'; - // Service Address 服务地址 - const baseUrl = `http://${host}` - sessionStorage.setItem("baseUrl", baseUrl) - - // websocket Address - const wsUrl = `ws://${host}` - sessionStorage.setItem("wsUrl", wsUrl) + // Service Address 服务地址 + const baseUrl = `http://${host}`; + sessionStorage.setItem('baseUrl', baseUrl); + + // websocket Address + const wsUrl = `ws://${host}`; + sessionStorage.setItem('wsUrl', wsUrl); })();