From 2d75a7f3dc7b15965ce06d8cb457afaa3e98ca20 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Wed, 15 Oct 2025 14:35:26 +0800
Subject: [PATCH] feat: feat: 退出登录逻辑

---
 src/components/WebViewPlus.vue |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/components/WebViewPlus.vue b/src/components/WebViewPlus.vue
index 775ff39..6f4acd8 100644
--- a/src/components/WebViewPlus.vue
+++ b/src/components/WebViewPlus.vue
@@ -16,6 +16,11 @@
 // WEB_INVOKE_APPSERVICE
 function messageFun(e) {
   if(e.data.type === 'WEB_INVOKE_APPSERVICE'){
+    if (e.data.data.arg.type === 'tokenExpired'){
+      return uni.redirectTo({
+        url: '/pages/login/index'
+      })
+    }
     emit('webMessage', e.data.data.arg)
   }
 }

--
Gitblit v1.9.3