diff --git a/src/layout/header/components/update_info.vue b/src/layout/header/components/update_info.vue index bfec4c4..0cb3359 100644 --- a/src/layout/header/components/update_info.vue +++ b/src/layout/header/components/update_info.vue @@ -136,7 +136,9 @@ const fnSubmit = debounce( PASSWORD: form.value.newpwd, }); ElMessage.success("修改成功"); - await fnSignOut(); + if(form.value.newpwd && form.value.newpassword1){ + await fnSignOut(); + } emits("get-data"); }, { atBegin: true }