history
This commit is contained in:
parent
8c8b2a14ef
commit
d3d64cd25e
@ -42,7 +42,9 @@ const routes = [
|
||||
]
|
||||
|
||||
// router 路由对象
|
||||
// history model js
|
||||
const router = new VueRouter({
|
||||
mode: 'history',
|
||||
routes: routes // (缩写) 相当于 routes: routes
|
||||
})
|
||||
// router 挂载路由 给vue实例
|
||||
|
Loading…
Reference in New Issue
Block a user