From daf6150f935e4013092fe16ffcf41391443f9d82 Mon Sep 17 00:00:00 2001 From: YuanHuakk <1751826683@qq.com> Date: Tue, 21 Nov 2023 20:43:08 +0800 Subject: [PATCH] =?UTF-8?q?build(custom):=20=E8=B7=AF=E7=94=B1=E6=9B=B4?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E6=B5=8F=E8=A7=88=E5=99=A8=20history=20?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/index.ts b/config/index.ts index f4ca783..e8bcfd3 100644 --- a/config/index.ts +++ b/config/index.ts @@ -53,10 +53,10 @@ export default defineConfig(async (merge, {}) => { }, }, h5: { - publicPath: '/public/', + publicPath: '/', staticDirectory: 'static', router: { - mode: 'hash', + mode: 'browser', }, output: { filename: 'js/[name].[hash:8].js',