bug
jiangping
2023-11-07 64b432916af9c9218ab3f3eca614e26c542142ae
web_standard/src/components/common/Menu.vue
@@ -30,7 +30,7 @@
  name: 'Menu',
  components: { Scrollbar, MenuItems },
  computed: {
    ...mapState(['menuData']),
    ...mapState(['menuData', 'userInfo']),
    // 选中的菜单index
    activeIndex () {
      let path = this.$route.path
@@ -59,6 +59,10 @@
     */
    handleSelect (menuIndex) {
      const menuConfig = this.__getMenuConfig(menuIndex, 'index', this.menuData.list)
      if (menuConfig.url.includes('http')) {
        window.open(`${menuConfig.url}?companyId=${this.userInfo.company.id}`, '_black')
        return
      }
      // 找不到页面
      try {
        require('@/views' + menuConfig.url)