feat: 合并Gin_Vue
This commit is contained in:
15
public/config.js
Normal file
15
public/config.js
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* config 临时配置参数
|
||||
*/
|
||||
(function () {
|
||||
// host = ip:prot
|
||||
const host = "192.168.12.12:3030";
|
||||
|
||||
// 服务地址
|
||||
const baseUrl = `http://${host}`
|
||||
sessionStorage.setItem("baseUrl", baseUrl)
|
||||
|
||||
// websocket
|
||||
const wsUrl = `ws://${host}`
|
||||
sessionStorage.setItem("wsUrl", wsUrl)
|
||||
})();
|
||||
Reference in New Issue
Block a user