优化代码

This commit is contained in:
pengxiaolong
2025-09-29 20:48:31 +08:00
parent 0a721e99f8
commit 0044f8f334
63 changed files with 667 additions and 137 deletions

View File

@@ -51,7 +51,7 @@ const _sfc_main = {
});
}, 300);
} else {
common_vendor.index.__f__("log", "at pages/Setting/Setting.vue:142", res.msg);
common_vendor.index.__f__("log", "at pages/Setting/Setting.vue:144", res.msg);
}
});
},
@@ -84,21 +84,36 @@ const _sfc_main = {
method: "POST",
data: {
uuid: data.uuid,
userId: this.id
id: this.id
},
userInfo: true
}).then((res2) => {
if (res2.code === 200) {
components_request.request({
url: "user/confirm",
method: "POST",
data: {
uuid: data.uuid,
id: this.id
},
userInfo: true
}).then((res3) => {
if (res3.code === 200) {
common_vendor.index.showToast({
title: "登录成功",
icon: "success"
});
} else {
common_vendor.index.showToast({
title: res3,
icon: "none"
});
}
}).catch((err) => {
common_vendor.index.showToast({
title: "登录成功",
icon: "success"
});
} else {
common_vendor.index.showToast({
title: res2,
title: "登录失败",
icon: "none"
});
}
});
}).catch((err) => {
common_vendor.index.showToast({
title: "登录失败",
@@ -141,7 +156,7 @@ const _sfc_main = {
},
userInfo: true
}).then((ress) => {
common_vendor.index.__f__("log", "at pages/Setting/Setting.vue:243", "修改调用返回", ress);
common_vendor.index.__f__("log", "at pages/Setting/Setting.vue:262", "修改调用返回", ress);
if (ress.code === 200) {
common_vendor.index.showToast({
title: "修改成功",