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