二级目录部署

This commit is contained in:
Zheng Jie
2022-03-22 11:19:53 +08:00
parent 337794ee6f
commit 06f1f53dad
4 changed files with 7 additions and 5 deletions

View File

@@ -61,8 +61,9 @@ export const constantRouterMap = [
]
export default new Router({
// mode: 'hash',
mode: 'history',
mode: 'hash',
base: '/demo/',
// mode: 'history',
scrollBehavior: () => ({ y: 0 }),
routes: constantRouterMap
})