This commit is contained in:
asd
2019-12-09 09:25:31 +08:00
parent e583463140
commit 49ecb0c2e2

View File

@@ -23,6 +23,12 @@ yarn add vue-router
1.在src/main.js中 定义 路径及映射的组件
```
const routes= [
{ path: "/a", component: aa },
{ path: "/b", component: bb },
]
```
2.实例化 VuRouter