build(custom): 路由更改为浏览器 history 路由模式
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user