From 1fb44496929548b4f07b37796d506dedc494d44a Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期二, 30 七月 2024 17:29:35 +0800
Subject: [PATCH] update 问题修复

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

diff --git a/plugins/http.js b/plugins/http.js
index 47b71d6..e2b5096 100644
--- a/plugins/http.js
+++ b/plugins/http.js
@@ -93,6 +93,7 @@
 								message.showToast('系统异常')
 							} else if (res.data.code === '401' || res.data && res.data.code &&
 								res.data.code.startsWith('401')) {
+								console.log('resp', res)
 								message.showToast('登录信息失效')
 								storage.removeItem('token')
 								reject({
@@ -109,6 +110,7 @@
 								uni.reLaunch({
 									url: '/pages/login/supplier-login'
 								})
+								// #endif
 
 							} else {
 								if (res.data.data && typeof res.data.data === 'string') {
@@ -132,20 +134,22 @@
 						// store.dispatch('/clearUserInfo')
 						// commit('updat')
 						// store.commit('updateLogin', false)
+						console.log('401',res)
+						message.showToast('登录信息失效')
 						storage.removeItem('token')
 						reject({
 							data: null,
 							code: 401,
 							msg: 'Unauthorized'
 						})
-						// #ifdef H5
+						// #ifdef PUB_CUSTOMER
 						uni.reLaunch({
-							url: '/views/pc/login.vue'
+							url: '/pages/user/supplier-user'
 						})
 						// #endif
-						// #ifndef H5
+						// #ifndef PUB_CUSTOMER
 						uni.reLaunch({
-							url: '/'
+							url: '/pages/login/supplier-login'
 						})
 						// #endif
 

--
Gitblit v1.9.3