mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-07-01 20:42:07 +00:00
fix updateSecret
This commit is contained in:
parent
5dc95f8556
commit
c9f245cb25
1 changed files with 3 additions and 3 deletions
|
@ -425,7 +425,7 @@
|
||||||
this.loading(false);
|
this.loading(false);
|
||||||
if (msg.success) {
|
if (msg.success) {
|
||||||
this.user = {};
|
this.user = {};
|
||||||
window.location.replace(basePath + "logout");
|
window.location.replace;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async restartPanel() {
|
async restartPanel() {
|
||||||
|
@ -462,9 +462,9 @@
|
||||||
async updateSecret() {
|
async updateSecret() {
|
||||||
this.loading(true);
|
this.loading(true);
|
||||||
const msg = await HttpUtil.post("/panel/setting/updateUserSecret", this.user);
|
const msg = await HttpUtil.post("/panel/setting/updateUserSecret", this.user);
|
||||||
if (msg.success) {
|
if (msg && msg.obj) {
|
||||||
this.user = msg.obj;
|
this.user = msg.obj;
|
||||||
window.location.replace(basePath + "logout");
|
window.location.replace;
|
||||||
}
|
}
|
||||||
this.loading(false);
|
this.loading(false);
|
||||||
await this.updateAllSetting();
|
await this.updateAllSetting();
|
||||||
|
|
Loading…
Reference in a new issue