fix:default config.js for vue3

This commit is contained in:
2023-10-20 17:50:32 +08:00
parent 917777c25a
commit 2be2cf8289

16
public/default/config.js Normal file
View File

@@ -0,0 +1,16 @@
/**
* config 非Nginx部署可使用的配置参数
* Configuration parameters available for non Nginx deployments using config
*/
(function () {
// host = ip:prot
const host = "192.168.2.219:3030";
// Service Address 服务地址
const baseUrl = `http://${host}`
sessionStorage.setItem("baseUrl", baseUrl)
// websocket Address
const wsUrl = `ws://${host}`
sessionStorage.setItem("wsUrl", wsUrl)
})();