fix updateSecret

This commit is contained in:
MHSanaei 2024-03-12 16:20:48 +03:30
parent 5dc95f8556
commit c9f245cb25

View file

@ -425,7 +425,7 @@
this.loading(false);
if (msg.success) {
this.user = {};
window.location.replace(basePath + "logout");
window.location.replace;
}
},
async restartPanel() {
@ -462,9 +462,9 @@
async updateSecret() {
this.loading(true);
const msg = await HttpUtil.post("/panel/setting/updateUserSecret", this.user);
if (msg.success) {
if (msg && msg.obj) {
this.user = msg.obj;
window.location.replace(basePath + "logout");
window.location.replace;
}
this.loading(false);
await this.updateAllSetting();