From 6718010ceb476f7af448479acbebf259ab65f5d3 Mon Sep 17 00:00:00 2001
From: ZF sun <34314687@qq.com>
Date: Thu, 8 Jan 2026 09:04:36 +0800
Subject: [PATCH] =?UTF-8?q?chore:=20common/js/util.js=20=E5=A2=9E=E5=8A=A0?=
=?UTF-8?q?=E5=88=A4=E6=96=AD=E6=98=AF=E5=BF=AB=E5=BA=94=E7=94=A8=E7=9A=84?=
=?UTF-8?q?=E5=87=BD=E6=95=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
common/js/util.js | 8 ++++++++
pages/index/index.vue | 4 +---
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/common/js/util.js b/common/js/util.js
index 56519f4..fb6a505 100644
--- a/common/js/util.js
+++ b/common/js/util.js
@@ -1168,8 +1168,12 @@ export default {
* @returns {boolean} 是否为快应用
*/
isQuickApp() {
+ // #ifndef QUICKAPP-WEBVIEW
const systemInfo = this.getDeviceInfo();
return systemInfo.platform === 'quickapp' || process.env.UNI_PLATFORM === 'quickapp';
+ // #endif
+
+ return true;
},
/**
* 判断是否为华为快应用环境
@@ -1177,8 +1181,12 @@ export default {
*/
isHuaweiQuickApp() {
if (!this.isQuickApp()) return false;
+
+ // #ifndef QUICKAPP-WEBVIEW-HUAWEI
const systemInfo = this.getDeviceInfo();
return systemInfo.brand === 'HUAWEI' || systemInfo.manufacturer === 'HUAWEI' ||
(typeof qh !== 'undefined' && qh.platform === 'huawei');
+ // #endif
+ return true;
}
}
\ No newline at end of file
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 0a5cad0..cdab934 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -137,10 +137,8 @@
-
-
+
-