src/components/layouts/TabLayout.vue
@@ -124,11 +124,9 @@
        }
      },
      'activePage': function(key) {
        console.log('key', key)
        let index = this.linkList.lastIndexOf(key)
        let waitRouter = this.pageList[index]
        // 【TESTA-523】修复:不允许重复跳转路由异常
        console.log('waitRouter', waitRouter, 'fullPath', this.$route.fullPath, waitRouter.fullPath !== this.$route.fullPath)
        if (waitRouter.path !== this.$route.fullPath) {
          this.$router.push(Object.assign({}, waitRouter))
        }
@@ -169,7 +167,6 @@
      // update-begin-author:sunjianlei date:20200120 for: 动态更改页面标题
      changeTitle(title) {
        console.log('title', title)
        let projectTitle = 'MDC智慧车间'
        // 首页特殊处理
        if (this.$route.path === indexKey) {
@@ -181,7 +178,6 @@
      // update-end-author:sunjianlei date:20200120 for: 动态更改页面标题
      changePage(key) {
        console.log('changePage', key)
        this.activePage = key
      },
      tabCallBack() {
@@ -206,7 +202,6 @@
          this.$message.warning('这是最后一页,不能再关闭了啦')
          return
        }
        console.log('this.pageList ', this.pageList)
        let removeRoute = this.pageList.filter(item => item.path == key)
        this.pageList = this.pageList.filter(item => item.path !== key)
        let index = this.linkList.indexOf(key)
@@ -219,8 +214,6 @@
        let cacheRouterArray = Vue.ls.get(CACHE_INCLUDED_ROUTES) || []
        if (removeRoute && removeRoute[0]) {
          let componentName = removeRoute[0].meta.componentName
          console.log('key: ', key)
          console.log('componentName: ', componentName)
          if (cacheRouterArray.includes(componentName)) {
            cacheRouterArray.splice(cacheRouterArray.findIndex(item => item === componentName), 1)
            Vue.ls.set(CACHE_INCLUDED_ROUTES, cacheRouterArray)
@@ -351,7 +344,6 @@
      clickMenuTitleSelected(selectedMenus) {
        //console.log("新的路由",newRoute)
        console.log('clickTitle', this.activePage)
        this.activePage = selectedMenus[0].path
        if (!this.multipage) {
          this.linkList = [this.linkList[0], selectedMenus[0].path]