build(custom): 路由更改为浏览器 history 路由模式

This commit is contained in:
2023-11-21 20:43:08 +08:00
parent 2b6e9a72e4
commit daf6150f93

View File

@@ -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',