From caf56217dc2bf898b63b0e1f31a7098202c32825 Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期六, 15 十一月 2025 16:50:17 +0800
Subject: [PATCH] Merge branch 'feature_gps'

---
 app/store/modules/user.js |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/app/store/modules/user.js b/app/store/modules/user.js
index ec289bf..66b252d 100644
--- a/app/store/modules/user.js
+++ b/app/store/modules/user.js
@@ -140,8 +140,22 @@
           commit('SET_PERMISSIONS', [])
           removeToken()
           storage.clean()
+          
+          // 瑙﹀彂鍏ㄥ眬浜嬩欢锛岄�氱煡 App.vue 鍋滄杞
+          uni.$emit('user-logout')
+          
           resolve()
         }).catch(error => {
+          // 鍗充娇閫�鍑烘帴鍙eけ璐ワ紝涔熻娓呯┖鏈湴鐘舵��
+          commit('SET_TOKEN', '')
+          commit('SET_ROLES', [])
+          commit('SET_PERMISSIONS', [])
+          removeToken()
+          storage.clean()
+          
+          // 瑙﹀彂鍏ㄥ眬浜嬩欢
+          uni.$emit('user-logout')
+          
           reject(error)
         })
       })

--
Gitblit v1.9.1