1.路由的概念
2.路由的基本使用
1.安装
因为我们使用的是Vue2 所以使用的 router 是 3版本 当使用Vue3 的时候就使用 router4
npm i vue-router@3
2.简单使用
/router/index.js
//该文件专门创建整个应用的路由器
import VueRouter from 'vue-router';
//引入组件
import MyAbout from '../component/MyAbout.vue'
import My