当前位置: 首页 > news >正文

有什么免费建站网站什么做的网站推广

有什么免费建站网站,什么做的网站推广,wordpress表格线,网页设计优化网站建设可以吗使用vue-router的addRoutes动态添加路由时#xff0c;子路由重复了。点击‘职工类型’#xff0c;路由地址变为‘http://localhost:8123/#/workerType’#xff0c;显示的却是‘职工列表’点击‘职工列表’#xff0c;路由地址变为‘http://localhost:8123/#/workerList’子路由重复了。点击‘职工类型’路由地址变为‘http://localhost:8123/#/workerType’显示的却是‘职工列表’点击‘职工列表’路由地址变为‘http://localhost:8123/#/workerList’显示的还是‘职工列表’点击‘学生类型’路由地址变为‘http://localhost:8123/#/studentType’显示的却是‘学生列表’点击‘学生列表’路由地址变为‘http://localhost:8123/#/studentList’显示的还是‘学生列表’关键代码var menuData [{path: ,componentPath: /layout/index,text: 首页,children: [{path: /index, componentPath: /homepage/index, text: 首页}]},{path: /worker,componentPath: /layout/index,text: 职工管理,children: [{path: /workerType, componentPath: /workersSystem/workerType, text: 职工类别},{path: /workerList, componentPath: /workersSystem/workerList, text: 职工列表}]},{path: /student,componentPath: /layout/index,text: 学生管理,children: [{path: /studentType, componentPath: /studentSystem/studentType, text: 学生类别},{path: /studentList, componentPath: /studentSystem/studentList, text: 学生列表}]},{path: /college,componentPath: /layout/index,text: 学院管理,children: [{path: /collegeList, componentPath: /collegeSystem/collegeList, text: 学院列表}]}]// 存储路由数据tools.setStore(menuData, JSON.stringify(menuData));// 存储权限列表数组一维数组--_-tools.setStore(rootList, JSON.stringify(tools.getRootList(menuData)));// 使用getRoutes函数导入component组件到对应的路由var routes tools.getRoutes(menuData);// 将路由插入到router中注页面刷新时会丢失所以需要监听beforeEach在其中重新添加this.$router.addRoutes(routes);this.$router.push(/index);tools.js文件getRoutes (menu) {var rootRoute ;if ( !menu || menu.length 0 ) {return [];}for ( var i 0; i menu.length; i ) {var item menu[i];item.component () import(/views${item.componentPath});if ( item.children item.children.length 0 ) {item.children this.getRoutes(item.children);}}console.log(menu);return menu;},是不是getRoutes里面的component引入不对呀github地址https://github.com/sunshineTY…后台系统登录账户1 密码1
http://www.zqtcl.cn/news/597817/

相关文章:

  • 恩施网站优化七牛云可以做网站的存储空间吗
  • 网站建设的源代码有什么作用网站维护包括哪些
  • 广东广东网站建设工作网站qq登录 开发
  • 中山网页网站设计模板access 数据库做网站
  • 阿里云网站做网站的服务器用什么系统
  • 什么公司做网站最好怎么给网站做快照
  • 官方网站建设的方法有哪些方面邮箱号码大全
  • 电商app软件山东网络推广优化排名
  • 国内产品网站w源码1688网站关键词描述字数
  • 网站404 模板wordpress 文字插件下载
  • 河南民基建设工程有限公司网站齐齐哈尔建设局网站首页
  • 响应式网站建设推荐乐云践新三丰云免费云服务器
  • 长沙网站建设模板uc浏览器访问网站
  • 擼擼擼做最好的导航网站陕西政务服务网注册公司流程
  • 怎样做商城网站的推广wordpress用php哪个版本好
  • 网站功能模块建设建设网站考证
  • 网站代码结构成都住建局官网报名入口
  • 吴桥县网站建设房产门户网站模板
  • 标签化网站网络服务类型及其所采用的网络协议
  • 做网站服务器应该怎么配置网页美工设计实践性教案
  • 响应式网站导航栏内容泰安网站营销推广
  • 南通营销网站开发软件开发工具名词解释
  • 吉林企业网站模板建站哪个好wordpress后台新建慢
  • 整合营销的成功案例肇庆seo优化
  • 网站关键字标签合肥高端网站建设设计公司哪家好
  • 大型企业网站设计案例免费在线看片
  • 云南网站开发公司找哪家网站弹出式链接后台怎么做
  • 电商网站的支付模块怎么做企业网站建设招标文件
  • 旅游在线网站开发十八个免费的舆情网站
  • 网站怎么申请百度小程序火车头采集发布wordpress