From d6e8780fb1b2fe5d14186901f0a45bbc7abbf3eb Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期一, 24 二月 2025 15:26:48 +0800
Subject: [PATCH] fix: 对接

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

diff --git a/apps/taro/src/utils/request/index.ts b/apps/taro/src/utils/request/index.ts
index 356eca8..4d74dc6 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();
 }
 

--
Gitblit v1.9.1