From 3c26f581cd77bed95cc56464f8424993f3c6b13a Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 28 六月 2021 18:45:44 +0800
Subject: [PATCH] 2021-06-28

---
 src/menu/components/form/formaction/formconfig.jsx |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/menu/components/form/formaction/formconfig.jsx b/src/menu/components/form/formaction/formconfig.jsx
index 1a84804..c0e6f61 100644
--- a/src/menu/components/form/formaction/formconfig.jsx
+++ b/src/menu/components/form/formaction/formconfig.jsx
@@ -10,7 +10,7 @@
  */
 
 export function getActionForm (card, functip, tableName, usefulFields, modules) {
-  const isApp = sessionStorage.getItem('appType') === 'pc'
+  const appType = sessionStorage.getItem('appType')
   let _type = '鎻愪氦'
   if (card.type === 'prev') {
     _type = '涓婁竴姝�'
@@ -19,7 +19,7 @@
   }
 
   let menulist = []
-  if (isApp) {
+  if (appType === 'pc' || appType === 'mob') {
     menulist = sessionStorage.getItem('appMenus')
     if (menulist) {
       try {
@@ -242,7 +242,7 @@
       readonly: false
     },
     {
-      type: isApp ? 'select' : 'cascader',
+      type: (appType === 'pc' || appType === 'mob') ? 'select' : 'cascader',
       key: 'linkmenu',
       label: '鎵撳紑鑿滃崟',
       tooltip: '鎵ц鎴愬姛鍚庨渶瑕佹墦寮�鐨勮彍鍗曘��',
@@ -256,7 +256,7 @@
       label: '鎵撳紑鏂瑰紡',
       initVal: card.open || 'blank',
       required: false,
-      forbid: !isApp,
+      forbid: appType !== 'pc',
       options: [{
         value: 'blank',
         text: '鏂扮獥鍙�'

--
Gitblit v1.8.0