mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-02 20:08:40 +08:00
在线升级二级路径修护
This commit is contained in:
parent
92fa3d7439
commit
b1b49a42db
@ -109,7 +109,9 @@ export default {
|
||||
},
|
||||
socketUrl() {
|
||||
const protocol = location.protocol === "https:" ? "wss://" : "ws://";
|
||||
return `${protocol}${location.host}/node_update?userId=${this.getLongTermToken}&nodeId=system&type=nodeUpdate`;
|
||||
const domain = window.routerBase;
|
||||
const url = (domain + "/node_update").replace(new RegExp("//", "gm"), "/");
|
||||
return `${protocol}${location.host}${url}?userId=${this.getLongTermToken}&nodeId=system&type=nodeUpdate`;
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
|
Loading…
Reference in New Issue
Block a user