mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-07-02 04:52:08 +00:00
FIX redirect after restart panel
This commit is contained in:
parent
419a1938ee
commit
c7e300f14d
1 changed files with 6 additions and 1 deletions
|
@ -480,7 +480,12 @@
|
||||||
if (msg.success) {
|
if (msg.success) {
|
||||||
this.loading(true);
|
this.loading(true);
|
||||||
await PromiseUtil.sleep(5000);
|
await PromiseUtil.sleep(5000);
|
||||||
window.location.replace(this.allSetting.webBasePath + "panel/settings");
|
let protocol = "http://";
|
||||||
|
if (this.allSetting.webCertFile !== "") {
|
||||||
|
protocol = "https://";
|
||||||
|
}
|
||||||
|
const { host, pathname } = window.location;
|
||||||
|
window.location.replace(protocol + host + this.allSetting.webBasePath + pathname.slice(1));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async fetchUserSecret() {
|
async fetchUserSecret() {
|
||||||
|
|
Loading…
Reference in a new issue