From 05316275ee6f1623cc022a3cb4967a440c105a6b Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期二, 29 七月 2025 16:43:42 +0800
Subject: [PATCH] add:编辑资料

---
 plugins/http.js |   26 ++++++++++++++------------
 1 files changed, 14 insertions(+), 12 deletions(-)

diff --git a/plugins/http.js b/plugins/http.js
index 412254e..0523cbe 100644
--- a/plugins/http.js
+++ b/plugins/http.js
@@ -1,7 +1,7 @@
 import environments from '@/environments'
 import message from './message'
 import storage from './storage'
-import store from '../store'
+// import store from '../store'
 import utils from './util.js'
 
 let pre = 'api'
@@ -107,19 +107,20 @@
 								console.log('resp', res)
 								// storage.removeItem('token')
 								// await store.dispatch('logout')
-								store.commit('updateLogin', false)
+								// TODO 
+								// store.commit('updateLogin', false)
 
 								await message.showToast('登录信息失效')
 
 								// #ifdef PUB_CUSTOMER
-								uni.reLaunch({
-									url: '/pages/user/supplier-user'
-								})
+								// uni.reLaunch({
+								// 	url: '/pages/login/login'
+								// })
 								// #endif
 								// #ifndef PUB_CUSTOMER
-								uni.reLaunch({
-									url: '/pages/login/supplier-login'
-								})
+								// uni.reLaunch({
+								// 	url: '/pages/login/login'
+								// })
 								// #endif
 								reject({
 									data: null,
@@ -152,7 +153,8 @@
 						console.log('401', res)
 						// storage.removeItem('token')
 						// await store.dispatch('logout')
-						store.commit('updateLogin', false)
+						// TODO
+						// store.commit('updateLogin', false)
 						await message.showToast('登录信息失效')
 
 
@@ -162,9 +164,9 @@
 						})
 						// #endif
 						// #ifndef PUB_CUSTOMER
-						uni.reLaunch({
-							url: '/pages/login/supplier-login'
-						})
+						// uni.reLaunch({
+						// 	url: '/pages/login/login'
+						// })
 						// #endif
 						reject({
 							data: null,

--
Gitblit v1.9.3