From a3f920c3aa61a1bbbdf042163ea194f092ae466d Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Wed, 11 Mar 2026 12:12:18 +0800
Subject: [PATCH] feat: 退出登录

---
 applications/task-work-order/src/page/lock/index.vue |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/applications/task-work-order/src/page/lock/index.vue b/applications/task-work-order/src/page/lock/index.vue
index 1bb977e..6ca67a0 100644
--- a/applications/task-work-order/src/page/lock/index.vue
+++ b/applications/task-work-order/src/page/lock/index.vue
@@ -39,6 +39,7 @@
 <script>
 import { mapGetters } from 'vuex';
 import { removeRefreshToken, removeToken } from '@/utils/auth';
+import { logOutFun } from '@/utils/util'
 
 export default {
   name: 'lock',
@@ -72,12 +73,7 @@
         cancelButtonText: '取消',
         type: 'warning',
       }).then(() => {
-        this.$store.dispatch('LogOut').then(() => {
-          // 清除token信息
-          removeToken();
-          removeRefreshToken();
-          this.$router.push({ path: '/login' });
-        });
+				logOutFun()
       });
     },
     handleLogin() {

--
Gitblit v1.9.3