From 2903f0fb05e8818bf5be4b7f629f7d8226480fa1 Mon Sep 17 00:00:00 2001 From: Mr.Zhang <710666463@qq.com> Date: 星期五, 25 八月 2023 18:36:37 +0800 Subject: [PATCH] 1.0.3 企业 大屏 平台 --- web_standard/src/components/common/Menu.vue | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/web_standard/src/components/common/Menu.vue b/web_standard/src/components/common/Menu.vue index 34cb1e8..3b9319f 100644 --- a/web_standard/src/components/common/Menu.vue +++ b/web_standard/src/components/common/Menu.vue @@ -30,7 +30,7 @@ name: 'Menu', components: { Scrollbar, MenuItems }, computed: { - ...mapState(['menuData']), + ...mapState(['menuData', 'userInfo']), // 閫変腑鐨勮彍鍗昳ndex 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) -- Gitblit v1.9.3