From 720c7c7e3539321a02f4246f681d2c4040136f05 Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Tue, 3 Jun 2025 14:38:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E5=BA=94=E7=94=A8ID?= =?UTF-8?q?=E5=B9=B6=E7=A6=81=E7=94=A8app=E5=B9=B3=E5=8F=B0=E7=9A=84copyNa?= =?UTF-8?q?tiveRes=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新manifest.json和.env文件中的应用ID为'__UNI__D1E5001'以匹配新配置 注释掉vite.config.ts中app平台的copyNativeRes插件调用以优化构建流程 --- env/.env | 2 +- src/manifest.json | 2 +- vite.config.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/env/.env b/env/.env index 2ef4cdf..e638295 100644 --- a/env/.env +++ b/env/.env @@ -1,7 +1,7 @@ VITE_APP_TITLE = 'unibest' VITE_APP_PORT = 9000 -VITE_UNI_APPID = 'H57F2ACE4' +VITE_UNI_APPID = '__UNI__D1E5001' VITE_WX_APPID = 'wxa2abb91f64032a2b' # h5部署网站的base,配置到 manifest.config.ts 里的 h5.router.base diff --git a/src/manifest.json b/src/manifest.json index 30e9fa2..344cc1a 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,6 +1,6 @@ { "name": "unibest", - "appid": "H57F2ACE4", + "appid": "__UNI__D1E5001", "description": "", "versionName": "1.0.0", "versionCode": "100", diff --git a/vite.config.ts b/vite.config.ts index 8c7fe57..5c49091 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -121,7 +121,7 @@ export default async ({ command, mode }) => { brotliSize: true, }), // 只有在 app 平台时才启用 copyNativeRes 插件 - UNI_PLATFORM === 'app' && copyNativeRes(), + // UNI_PLATFORM === 'app' && copyNativeRes(), Components({ extensions: ['vue'], deep: true, // 是否递归扫描子目录,