fix: 根据浏览器地址栏hostname加33030端口连接后端服务
This commit is contained in:
@@ -11,7 +11,8 @@
|
|||||||
*/
|
*/
|
||||||
(function () {
|
(function () {
|
||||||
// host = ip:port
|
// host = ip:port
|
||||||
const host = '192.168.8.100:33030';
|
// const host = '192.168.8.100:33030';
|
||||||
|
const host = `${window.location.hostname}:33030`;
|
||||||
|
|
||||||
// Service Address
|
// Service Address
|
||||||
sessionStorage.setItem('baseUrl', `http://${host}`);
|
sessionStorage.setItem('baseUrl', `http://${host}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user