556eb3e4 by sunnie

router默认hash

1 parent 842a3eb0
......@@ -13,8 +13,8 @@ Vue.use(Router)
const createRouter = () =>
new Router({
mode: 'history',
base: process.env.BASE_URL,
// mode: 'history', // 如果你是 history模式 需要配置vue.config.js publicPath
// base: process.env.BASE_URL,
scrollBehavior: () => ({ y: 0 }),
routes: constantRouterMap
})
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!