From 934ba914ec28d92554eb6cce4382ab9b4ca92fab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=90=A6?= <40948901+liuqi-web@users.noreply.github.com> Date: Fri, 27 Jun 2025 18:05:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:h5=E6=97=B6base=E9=85=8D=E7=BD=AE=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.config.ts | 2 +- vite.config.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/manifest.config.ts b/manifest.config.ts index 63c3239..503f85f 100644 --- a/manifest.config.ts +++ b/manifest.config.ts @@ -30,7 +30,7 @@ export default defineManifestConfig({ 'locale': VITE_FALLBACK_LOCALE, // 'zh-Hans' 'h5': { router: { - base: VITE_APP_PUBLIC_BASE, + // base: VITE_APP_PUBLIC_BASE, }, }, /* 5+App特有相关 */ diff --git a/vite.config.ts b/vite.config.ts index 1c0eca1..7d6224f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -50,12 +50,13 @@ export default async ({ command, mode }) => { VITE_SHOW_SOURCEMAP, VITE_APP_PROXY, VITE_APP_PROXY_PREFIX, + VITE_APP_PUBLIC_BASE } = env console.log('环境变量 env -> ', env) return defineConfig({ envDir: './env', // 自定义env目录 - + base: VITE_APP_PUBLIC_BASE, plugins: [ UniPages({ exclude: ['**/components/**/**.*'],