1、安装路由:npm install vue-router@4
2、创建路由文件
3、在main函数中导入并使用
4、在App.vue中使用路由
5、方式一:使用router-link
6、方式二:使用事件注意必须导入路由模块