优化代码
This commit is contained in:
@@ -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: "修改成功",
|
||||
|
||||
Reference in New Issue
Block a user