Browse Source

更新个人信息操作异常恢复

zhontai 2 years ago
parent
commit
2e1d4ceb12
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/views/admin/personal/index.vue

+ 3 - 1
src/views/admin/personal/index.vue

@@ -246,7 +246,9 @@ const onUpdateBasic = async () => {
     if (!valid) return
 
     state.updateLoading = true
-    const res = await new UserApi().updateBasic(state.personalForm, { showSuccessMessage: true })
+    const res = await new UserApi().updateBasic(state.personalForm, { showSuccessMessage: true }).catch(() => {
+      state.updateLoading = false
+    })
     state.updateLoading = false
 
     if (res?.success) {