Files
fe.ems.vue3/public/default/config.js
2023-11-25 15:41:26 +08:00

30 lines
1013 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* =============== 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';
// Service Address 服务地址
const baseUrl = `http://${host}`;
sessionStorage.setItem('baseUrl', baseUrl);
// websocket Address
const wsUrl = `ws://${host}`;
sessionStorage.setItem('wsUrl', wsUrl);
})();