1.修改代码部分
@/layout/components/AppMain.vue
还需要补充对照属性
增加
修改文件@store/index.js,把tagsView放到全局状态管理器里面来
修改文件@layout\components\index.js
新增
先导入(import),再注册(components),最后再在上面引用
2.补充文件部分
复制vue-element-admin项目中的文件到相应的目录中
@/layout/components/TagsView
@/store/modules/tagsView.js
@/store/modules/permission.js
修改文件@\layout\index.vue
3.错误修改
搜一下
用::v-deep试试
成功运行,如图,增加了选项卡
4.总结:自此前端的项目就结束了
用到了Vue(前端框架)
Vuex(全局状态管理框架)
ElementUI(前端UI框架)
Axios(前端HTTP框架)
vue-element-admin(项目脚手架)