From 82655fcf36edf8490822604b4bec34ea00209722 Mon Sep 17 00:00:00 2001 From: unknown <774378400@qq.com> Date: Sat, 10 Oct 2026 15:54:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B3=A8=E9=87=8A=E6=8E=89=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=BF=A1=E6=81=AF=E8=8E=B7=E5=8F=96=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=AF=86=E7=A0=81=E6=8F=90=E7=A4=BA=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + src/store/modules/user.js | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index dc89b16..4e23458 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,7 @@ selenium-debug.log *.local package-lock.json +pnpm-lock.yaml yarn.lock .history diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 66ed920..0237612 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -58,11 +58,11 @@ const useUserStore = defineStore( this.avatar = avatar cache.session.set('pwrChrtype', res.pwdChrtype) /* 初始密码提示 */ - if(res.isDefaultModifyPwd) { - ElMessageBox.confirm('您的密码还是初始密码,请修改密码!', '安全提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { - router.push({ name: 'Profile', params: { activeTab: 'resetPwd' } }) - }).catch(() => {}) - } + // if(res.isDefaultModifyPwd) { + // ElMessageBox.confirm('您的密码还是初始密码,请修改密码!', '安全提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { + // router.push({ name: 'Profile', params: { activeTab: 'resetPwd' } }) + // }).catch(() => {}) + // } /* 过期密码提示 */ if(!res.isDefaultModifyPwd && res.isPasswordExpired) { ElMessageBox.confirm('您的密码已过期,请尽快修改密码!', '安全提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => {