From 6841fa17d315eb2214bb0762bd6601607c945ebd Mon Sep 17 00:00:00 2001 From: 5g0Wp7Zy Date: Fri, 10 Oct 2025 11:21:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9wx=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- env/.env | 2 +- manifest.config.ts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/env/.env b/env/.env index bf7e046..d9f1faa 100644 --- a/env/.env +++ b/env/.env @@ -2,7 +2,7 @@ VITE_APP_TITLE = 'unibest' VITE_APP_PORT = 9000 VITE_UNI_APPID = '__UNI__D1E5001' -VITE_WX_APPID = 'wxa2abb91f64032a2b' +VITE_WX_APPID = 'wx8e64a91083684628' # h5部署网站的base,配置到 manifest.config.ts 里的 h5.router.base # https://uniapp.dcloud.net.cn/collocation/manifest.html#h5-router diff --git a/manifest.config.ts b/manifest.config.ts index 7702df5..945bf08 100644 --- a/manifest.config.ts +++ b/manifest.config.ts @@ -128,6 +128,12 @@ export default defineManifestConfig({ optimization: { subPackages: true, }, + permission: { + 'scope.userLocation': { + desc: '需要实时定位', + }, + }, + requiredPrivateInfos: ['getLocation', 'chooseLocation'], // 是否合并组件虚拟节点外层属性,uni-app 3.5.1+ 开始支持。目前仅支持 style、class 属性。 // 默认不开启(undefined),这里设置为开启。 mergeVirtualHostAttributes: true,