From 500078714411487af00161e01bd7e0b5efdc3414 Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期四, 07 八月 2025 13:32:32 +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