This commit is contained in:
theluyuan 2021-07-07 11:51:18 +08:00
parent 8c8b2a14ef
commit d3d64cd25e

View File

@ -42,7 +42,9 @@ const routes = [
]
// router 路由对象
// history model js
const router = new VueRouter({
mode: 'history',
routes: routes // (缩写) 相当于 routes: routes
})
// router 挂载路由 给vue实例