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