From 4e3e18cdb0d75c098b68353ef8c86cdd7c0f79b2 Mon Sep 17 00:00:00 2001
From: rk <94314517@qq.com>
Date: 星期四, 21 八月 2025 15:27:34 +0800
Subject: [PATCH] 111
---
small-program/utils/http.interceptor.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/small-program/utils/http.interceptor.js b/small-program/utils/http.interceptor.js
index dc1d37e..97db59d 100644
--- a/small-program/utils/http.interceptor.js
+++ b/small-program/utils/http.interceptor.js
@@ -2,6 +2,7 @@
// 璇锋眰鎷︽埅鍣�
uni.$u.http.interceptors.request.use((config) => {
const Headtoken = vm.$store.state.token
+ uni.showLoading({ title: '鍔犺浇涓�' });
// 鍒ゆ柇鏈夋棤token锛屾湁鍒欏姞鍏ヨ姹傚ご涓�
if (Headtoken) {
config.header['token'] = Headtoken;
@@ -13,7 +14,8 @@
// 鍝嶅簲鎷︽埅鍣�
uni.$u.http.interceptors.response.use((response) => {
- console.log(response.data)
+ uni.hideLoading();
+ // console.log(response.data)
if (response.data.code === 5113) {
uni.switchTab({
url: '/pages/index/index'
--
Gitblit v1.9.3