From ea408eac6343066edcd8ca18117794442b64b545 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期三, 21 五月 2025 17:16:39 +0800
Subject: [PATCH] feat: UI

---
 apps/taro/src/utils/request/index.ts |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/apps/taro/src/utils/request/index.ts b/apps/taro/src/utils/request/index.ts
index 356eca8..c2ff674 100644
--- a/apps/taro/src/utils/request/index.ts
+++ b/apps/taro/src/utils/request/index.ts
@@ -3,7 +3,7 @@
 import qs from 'qs';
 import Taro from '@tarojs/taro';
 import { getToken, Message } from '@/utils';
-import { isWeb } from '@/utils/env';
+import { isWeb, isWeChat } from '@/utils/env';
 import { tokenIsExpired, SensitiveManage } from '@life-payment/utils';
 import { useUserStoreWithOut } from '@/stores/modules/user';
 
@@ -24,7 +24,9 @@
 }
 
 export function endLoading() {
-  Taro.hideNavigationBarLoading();
+  if (isWeChat) {
+    Taro.hideNavigationBarLoading();
+  }
   Taro.hideLoading();
 }
 
@@ -47,7 +49,7 @@
   REDIRECT = 9,
 }
 // 涓庡悗绔害瀹氱殑鍝嶅簲鏁版嵁鏍煎紡
-interface ResponseStructure {
+export interface ResponseStructure {
   success: boolean;
   data: any;
   /**
@@ -92,7 +94,7 @@
   withCredentials: true,
 };
 
-const config: RequestConfig<ResponseStructure, IRequestOptions> = {
+export const config: RequestConfig<ResponseStructure, IRequestOptions> = {
   ...AxiosOptions,
 
   errorConfig: {

--
Gitblit v1.9.1