From 6c2dcade5e54ca4758689e566ec38e08326ef987 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Sat, 07 Jun 2025 09:48:03 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
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