|
@@ -172,7 +172,7 @@ Router.prototype.push = function push(location) {
|
|
|
|
|
|
export default new Router({
|
|
export default new Router({
|
|
base: "/admin",
|
|
base: "/admin",
|
|
- mode: 'history', // 去掉url中的#
|
|
|
|
|
|
+ mode: 'hash', // 去掉url中的#
|
|
scrollBehavior: () => ({ y: 0 }),
|
|
scrollBehavior: () => ({ y: 0 }),
|
|
routes: constantRoutes
|
|
routes: constantRoutes
|
|
})
|
|
})
|