diff --git a/src/layout/components/ResetPwd/index.vue b/src/layout/components/ResetPwd/index.vue
index 609f4b1..07a76f7 100644
--- a/src/layout/components/ResetPwd/index.vue
+++ b/src/layout/components/ResetPwd/index.vue
@@ -6,38 +6,40 @@
width="500"
:show-close='false'
:close-on-click-modal="false"
- v-loading="loading"
+
>
-
-
-
-
-
-
-
-
-
-
-
- 保存
- 关闭
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+ 关闭
+
+
+
@@ -112,6 +114,7 @@ const validatorPasswords = async (rule, value, callback) => {
/** 提交按钮 */
async function submit() {
+ loading.value = true;
try {
const valid = await proxy.$refs.pwdRef.validate();
if (!valid) return;
@@ -125,9 +128,7 @@ async function submit() {
ElMessage.error(resPwd.data.suggestions.join(', ') || '密码强度校验失败');
return
}
- }
-
- loading.value = true;
+ }
const res = await changePwd(user.oldPassword, user.newPassword);
if(res.meta.code !== 200){
ElMessage.error(res.meta?.message || '密码修改失败');
diff --git a/src/layout/components/Sidebar/SidebarItem.vue b/src/layout/components/Sidebar/SidebarItem.vue
index 89c0fda..8d6c50a 100644
--- a/src/layout/components/Sidebar/SidebarItem.vue
+++ b/src/layout/components/Sidebar/SidebarItem.vue
@@ -12,7 +12,7 @@
:index="resolvePath(onlyOneChild.path)"
:class="{ 'submenu-title-noDropdown': !isNest }"
>
-
+