From d59f518f466274b2caeb2e01c10c92deafe7c93b Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 09 二月 2022 11:48:29 +0800 Subject: [PATCH] 2022-02-09 --- src/menu/components/form/formaction/formconfig.jsx | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/menu/components/form/formaction/formconfig.jsx b/src/menu/components/form/formaction/formconfig.jsx index 808208b..63770ba 100644 --- a/src/menu/components/form/formaction/formconfig.jsx +++ b/src/menu/components/form/formaction/formconfig.jsx @@ -25,19 +25,21 @@ try { menulist = JSON.parse(menulist) menulist = menulist.map(item => ({value: item.MenuID, text: item.MenuName})) - } catch { + } catch (e) { menulist = [] } } else { menulist = [] } - menulist.unshift({value: '', text: '鏃�'}) + if (appType === 'mob') { + menulist.push({value: 'goback', text: '杩斿洖'}) + } } else { menulist = sessionStorage.getItem('fstMenuList') if (menulist) { try { menulist = JSON.parse(menulist) - } catch { + } catch (e) { menulist = [] } } else { @@ -248,6 +250,7 @@ tooltip: '鎵ц鎴愬姛鍚庨渶瑕佹墦寮�鐨勮彍鍗曘��', initVal: card.linkmenu, required: false, + allowClear: true, options: menulist }, { -- Gitblit v1.8.0