From 39638e2e6a4b0745b8bbbf876c969c7165399e36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8C=BF=E5=B0=8F=E5=A4=A9?= <1638245306@qq.com> Date: Wed, 28 Feb 2024 15:27:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=8F=98=E5=8C=96:=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=AF=86=E7=A0=81=E5=90=8E=E5=BC=BA=E5=88=B6=E9=80=80?= =?UTF-8?q?=E5=87=BA=E7=99=BB=E5=BD=95=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/system/personal/index.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/src/views/system/personal/index.vue b/web/src/views/system/personal/index.vue index b87fbcb..b61222d 100644 --- a/web/src/views/system/personal/index.vue +++ b/web/src/views/system/personal/index.vue @@ -182,6 +182,7 @@ import { useRouter } from 'vue-router'; import { useUserInfo } from '/@/stores/userInfo'; import { successMessage } from '/@/utils/message'; import {dictionary} from "/@/utils/dictionary"; +const router = useRouter(); // 头像裁剪组件 const avatarSelector = defineAsyncComponent(() => import('/@/components/avatarSelector/index.vue')); @@ -333,6 +334,10 @@ const settingPassword = () => { if (valid) { api.UpdatePassword(userPasswordInfo).then((res: any) => { ElMessage.success('密码修改成功'); + setTimeout(() => { + Session.remove('token'); + router.push('/login'); + }, 1000); }); } else { // 校验失败