From 12b8d3cdfdf42c6f5f7d2120c2c0a09973af2241 Mon Sep 17 00:00:00 2001
From: yinbangzhong <zhongbangyin@126.com>
Date: 星期二, 13 八月 2024 19:31:57 +0800
Subject: [PATCH] 用户字段调整

---
 src/store/modules/user/index.ts |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/store/modules/user/index.ts b/src/store/modules/user/index.ts
index 51faef3..faa226d 100644
--- a/src/store/modules/user/index.ts
+++ b/src/store/modules/user/index.ts
@@ -9,6 +9,7 @@
 import { removeRouteListener } from '@/utils/route-listener';
 import { UserState } from './types';
 import useAppStore from '../app';
+import router from "@/router";
 
 
 const useUserStore = defineStore('user', {
@@ -100,6 +101,9 @@
       try {
         await userLogout();
       } finally {
+        router.push({
+          name: "login",
+        });
         this.logoutCallBack();
       }
     },

--
Gitblit v1.8.0