四、vue脚手架routes的配置

npm install vue-router@3.1.3

 

一、

routes的配置
①view下新建一个页面

 

 ②route中index.js文件配置路由

 

 ③主页中使用route

 

 效果(右点击后)

 

 

 

 

posted on 2021-12-29 23:22  QiKS  阅读(82)  评论(0)    收藏  举报

导航