TOP
PeterChu
我的自留地
PeterChu
技术
About
我的开源
RSS
目录
浅尝 Vue —— 笔记二 为 Vue-project 添加页面的菜单链接
2021-02-10
/
Vue
笔记
前端
JS
浅尝 Vue —— 笔记二 为 Vue-project 添加页面的菜单链接
为 Vue-project 添加页面的菜单链接
menusArray.js
的 json 中添加数据
src/router/index.js
中添加路由,import 跳转的 .vue
Sidebar.vue
中的
onRoutes()
方法会生成跳转 url 完成。
需要注意目的 .vue 中的 import 引用路径
标题:浅尝 Vue —— 笔记二 为 Vue-project 添加页面的菜单链接
作者:
PeterChu
地址:
https://txjchu.gitee.io/articles/2021/02/10/1612937845438.html