From f11729af79a8478fc4cdcf667c12508f2abcae21 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Sat, 07 Jun 2025 08:42:12 +0800
Subject: [PATCH] Merge branch 'master' into test
---
src/views/system/userinfo.vue | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/views/system/userinfo.vue b/src/views/system/userinfo.vue
index a9c5d8a..8b8e12c 100644
--- a/src/views/system/userinfo.vue
+++ b/src/views/system/userinfo.vue
@@ -7,7 +7,7 @@
v-model="form"
@tab-click="handleTabClick"
@submit="handleSubmit"
-
+
>
<template #email="{ disabled, size }">
<el-input
@@ -76,8 +76,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',
@@ -104,8 +107,8 @@
realName: user.realName,
phone: user.phone,
email: user.email,
- };
-
+ };
+
});
}
},
--
Gitblit v1.9.3