556eb3e4 by sunnie

router默认hash

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