From f5b8eba57a6ff533a38c27dd93bd9c46a7e46ca1 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Fri, 23 May 2025 09:05:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E5=AF=86=E7=A0=81=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E8=87=AA=E5=AE=9A=E4=B9=89=E6=9B=B4=E6=96=B0=E5=91=A8?= =?UTF-8?q?=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/user.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 6fcd3ae..0f54c2d 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -59,6 +59,12 @@ const useUserStore = defineStore( router.push({ name: 'Profile', params: { activeTab: 'resetPwd' } }) }).catch(() => {}) } + /* 过期密码提示 */ + if(!res.isDefaultModifyPwd && res.isPasswordExpired) { + ElMessageBox.confirm('您的密码已过期,请尽快修改密码!', '安全提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { + router.push({ name: 'Profile', params: { activeTab: 'resetPwd' } }) + }).catch(() => {}) + } resolve(res) }).catch(error => { reject(error)