|
@@ -226,7 +226,7 @@ export const constantRoutes = [
|
|
|
{ path: '*', redirect: '/404', hidden: true }
|
|
{ path: '*', redirect: '/404', hidden: true }
|
|
|
]
|
|
]
|
|
|
const createRouter = () => new Router({
|
|
const createRouter = () => new Router({
|
|
|
- // mode: 'history', // require service support
|
|
|
|
|
|
|
+ mode: 'history', // require service support
|
|
|
scrollBehavior: () => ({ y: 0 }),
|
|
scrollBehavior: () => ({ y: 0 }),
|
|
|
routes: constantRoutes
|
|
routes: constantRoutes
|
|
|
})
|
|
})
|