diff --git a/src/views/admin/user/personal.vue b/src/views/admin/user/personal.vue index 91390348..3479feb4 100644 --- a/src/views/admin/user/personal.vue +++ b/src/views/admin/user/personal.vue @@ -61,12 +61,7 @@ - + @@ -213,7 +208,7 @@ const handleSaveUser = () => { if (!valid) { return false; } - editInfo(formData) + editInfo(formData.value) .then(() => { useMessage().success('修改成功'); // 更新上下文的 user信息 @@ -260,6 +255,9 @@ const initUserInfo = (userId: any) => { console.log(formData.value, 'formData'); initSocialList(); }) + .catch((err) => { + useMessage().error(err.msg); + }) .finally(() => { loading.value = false; }); @@ -296,6 +294,9 @@ const Unbinding = (type) => { .then((res) => { useMessage().success('解绑成功'); }) + .catch((err) => { + useMessage().error(err.msg); + }) .finally(() => { initUserInfo(formData.value.userId); }); diff --git a/src/views/login/component/mobile.vue b/src/views/login/component/mobile.vue index 5ef83fbe..0cd39e6a 100644 --- a/src/views/login/component/mobile.vue +++ b/src/views/login/component/mobile.vue @@ -1,5 +1,5 @@