本文档为个人博客文档系统的备份版本、作者:小游、作者博客:点击访问
vue-router
参考:https://next.router.vuejs.org/installation.html
https://blog.csdn.net/weixin_43932067/article/details/110374163
安装vue-router
npm install vue-router@next
然后我们新建一个router.js文件到router文件夹,内容如下
import {
createRouter,createWebHistory} from "vue-router";
// 路由信息