loulijun2021
2023-04-28 55e1ca6bccbee868b10fa9096f2f56704928461c
src/layout/components/Sidebar/index.vue
@@ -74,6 +74,17 @@
    routes() {
      return this.$router.options.routes
    },
    // activeMenu() {
    //   const route = this.$route
    //   const { meta, path } = route
    //   // if set path, the sidebar will highlight the path you set
    //   removeCookie('ruleCode')
    //   setCookie('ruleCode', meta.code)// 将编码规则code存到cookie里面
    //   if (meta.activeMenu) {
    //     return meta.activeMenu
    //   }
    //   return path
    // },
    activeMenu() {
      const route = this.$route
      const { meta, path } = route
@@ -83,6 +94,17 @@
      if (meta.activeMenu) {
        return meta.activeMenu
      }
      if (path.indexOf('kanbanManager') !== -1) { // 当点击智慧看板的时候
        const url = this.$router.resolve({
          path
          // query: { id: 123 }
        })
        const t = url.href.split('/')
        window.open('#/' + t[2], '_blank')
      }
      return path
    },
    showLogo() {