Closed balmainctf closed 7 years ago
1 router-view是一个组件,为什么不在component选项中注册就能有作用呢?其他的header组件必须注册后才能在template中使用...
vue-router 的源码,注册了 router-view 和 router-link 组件。 注册时机是当你在代码中调用 Vue.use(VueRouter) 的时候
1 router-view是一个组件,为什么不在component选项中注册就能有作用呢?其他的header组件必须注册后才能在template中使用...