From 274c4c5bff973a26b6bcf9d0c6708cb0518b1b12 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 14 五月 2021 17:54:28 +0800 Subject: [PATCH] 2021-05-14 --- src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx b/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx index 21c83bb..fcfeb2f 100644 --- a/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx +++ b/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx @@ -11,7 +11,7 @@ let appType = sessionStorage.getItem('appType') let menulist = null - if (appType === 'pc' || appType === 'mob') { + if (appType === 'pc') { menulist = sessionStorage.getItem('appMenus') if (Array.isArray(card.linkmenu)) { card.linkmenu = '' @@ -23,7 +23,7 @@ if (menulist) { try { menulist = JSON.parse(menulist) - if (appType === 'pc' || appType === 'mob') { + if (appType === 'pc') { menulist = menulist.map(item => { item.value = item.MenuID item.text = item.MenuName @@ -109,9 +109,9 @@ key: 'linkmenu', label: '鍏宠仈鑿滃崟', initVal: card.linkmenu || '', - tooltip: '鍙屽嚮楗煎浘锛屼細鎵撳紑鍏宠仈鐨勮彍鍗曘��', + tooltip: '鍙屽嚮鏌辩姸鍥撅紝浼氭墦寮�鍏宠仈鐨勮彍鍗曘��', required: false, - forbid: !(appType === 'pc' || appType === 'mob'), + forbid: appType !== 'pc', options: menulist }, { @@ -120,7 +120,7 @@ label: '鎵撳紑鏂瑰紡', initVal: card.open || 'blank', required: false, - forbid: !(appType === 'pc' || appType === 'mob'), + forbid: appType !== 'pc', options: [ { value: 'blank', text: '鏂扮獥鍙�' }, { value: 'self', text: '褰撳墠绐楀彛' } -- Gitblit v1.8.0