在线升级二级路径修护

This commit is contained in:
bwcx_jzy 2021-11-23 16:25:43 +08:00
parent 92fa3d7439
commit b1b49a42db

View File

@ -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() {