From 64a7f738aadbf552bfb1ce24c46b1924767bf526 Mon Sep 17 00:00:00 2001
From: Mr.Zhang <710666463@qq.com>
Date: 星期二, 05 九月 2023 16:00:16 +0800
Subject: [PATCH] 小程序
---
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