From ecf74aa8f8d08175de9afff8d1b7a23413f96f44 Mon Sep 17 00:00:00 2001 From: wuKong Date: Mon, 8 Dec 2025 19:01:53 +0800 Subject: [PATCH] =?UTF-8?q?feat(app):=20=E8=B0=83=E6=95=B4iOS=E7=BD=91?= =?UTF-8?q?=E7=BB=9C=E6=9D=83=E9=99=90=E5=88=9D=E5=A7=8B=E5=8C=96=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将iOS网络权限检查从app.vue迁移至当前页面 - 减轻app.vue初始加载负担 - 添加注释说明首页需自行迁移代码 - 优化uni-app平台网络状态处理逻辑 --- pages/index/index.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pages/index/index.vue b/pages/index/index.vue index 8152b1bf..63a324ca 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -83,6 +83,8 @@ // #ifdef APP-PLUS // ios首次授权网络,需要重新加载一次应用初始化 // 可能需要考虑上uni.onNetworkStatusChange,uni.offNetworkStatusChange组合拳以及主动主动唤起权限申请 + // 一开始放app.vue,感觉负载太重,搬到这里来了。 + // 如果你的首页不是这个页面,需要把代码搬过去。 if (sheep.$platform.os === 'ios') { if (await sheep.$platform.checkNetwork()) { await sheep.$store('app').init();