From e56792f78e4df0df2f12552d1a61dd8ca1db5c67 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期一, 27 四月 2026 22:26:28 +0800
Subject: [PATCH] app
---
app/utils/http.interceptor.js | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/app/utils/http.interceptor.js b/app/utils/http.interceptor.js
index ecd04a2..878c92c 100644
--- a/app/utils/http.interceptor.js
+++ b/app/utils/http.interceptor.js
@@ -1,6 +1,9 @@
const install = (Vue, vm) => {
// 璇锋眰鎷︽埅鍣�
uni.$u.http.interceptors.request.use((config) => {
+ if (!['web/driverInfo/updateLocation'].includes(config.url)) {
+ uni.showLoading({ title: '鍔犺浇涓�' });
+ }
const Headtoken = vm.$store.state.token
// 鍒ゆ柇鏈夋棤token锛屾湁鍒欏姞鍏ヨ姹傚ご涓�
if (Headtoken) {
@@ -13,7 +16,9 @@
// 鍝嶅簲鎷︽埅鍣�
uni.$u.http.interceptors.response.use((response) => {
- // console.log(response)
+ if (!['web/driverInfo/updateLocation'].includes(response.config.url)) {
+ uni.hideLoading();
+ }
// 鏈櫥褰�/鐧诲綍杩囨湡
if ([5112, 5113].includes(response.data.code)) {
vm.$store.commit('clearAll')
--
Gitblit v1.9.3