From b583ee014966380f55cd929bca5146a8ccdad536 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Fri, 06 Jun 2025 15:43:12 +0800
Subject: [PATCH] feat: 修改密码重新登录
---
src/views/system/userinfo.vue | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/views/system/userinfo.vue b/src/views/system/userinfo.vue
index b798ccc..5363c1b 100644
--- a/src/views/system/userinfo.vue
+++ b/src/views/system/userinfo.vue
@@ -17,6 +17,7 @@
import md5 from 'js-md5';
import func from '@/utils/func';
import { validatenull } from '@/utils/validate';
+import router from '@/router';
export default {
data() {
@@ -59,8 +60,11 @@
if (res.data.success) {
this.$message({
type: 'success',
- message: '修改密码成功!',
+ message: '修改密码成功,请重新登录!',
});
+ this.$store.dispatch('LogOut').then(() => {
+ this.$router.push({ path: '/login' })
+ })
} else {
this.$message({
type: 'error',
--
Gitblit v1.9.3