From a6c0423a5164d0bbecfc27d59b7ea140cdab6fca Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 17 八月 2022 10:58:19 +0800
Subject: [PATCH] 2022-08-17

---
 src/views/pcdesign/index.jsx           |    3 +--
 src/views/mobdesign/menuform/index.jsx |   21 ++-------------------
 src/views/pcdesign/menuform/index.jsx  |    8 ++++----
 src/views/mobdesign/index.jsx          |    3 +--
 4 files changed, 8 insertions(+), 27 deletions(-)

diff --git a/src/views/mobdesign/index.jsx b/src/views/mobdesign/index.jsx
index 5b6484a..15218a9 100644
--- a/src/views/mobdesign/index.jsx
+++ b/src/views/mobdesign/index.jsx
@@ -1323,9 +1323,8 @@
       config.loginview = false
       config.tabview = false
 
-      if (config.permission !== 'true') {
+      if (roleParam.children.length === 0) {
         roleParam.pass = true
-        roleParam.children = []
       }
 
       config.components.forEach(item => {
diff --git a/src/views/mobdesign/menuform/index.jsx b/src/views/mobdesign/menuform/index.jsx
index 13e2920..60d0442 100644
--- a/src/views/mobdesign/menuform/index.jsx
+++ b/src/views/mobdesign/menuform/index.jsx
@@ -30,23 +30,6 @@
     }
 
     this.props.updateConfig(_config)
-    // if (key === 'cacheUseful') {
-    //   this.props.updateConfig({...config, cacheUseful: value})
-    // } else if (key === 'timeUnit') {
-    //   this.props.updateConfig({...config, timeUnit: value})
-    // } else if (key === 'advertUrl') {
-    //   this.props.updateConfig({...config, advertUrl: value})
-    // } else if (key === 'advertTime') {
-    //   this.props.updateConfig({...config, advertTime: value})
-    // } else if (key === 'pullRefresh') {
-    //   this.props.updateConfig({...config, pullRefresh: value})
-    // } else if (key === 'statusBarbgColor') {
-    //   this.props.updateConfig({...config, statusBarbgColor: value})
-    // } else if (key === 'permission') {
-    //   this.props.updateConfig({...config, permission: value})
-    // } else if (key === 'share') {
-    //   this.props.updateConfig({...config, share: value})
-    // }
   }
 
   // 鑿滃崟鍚嶇О
@@ -130,7 +113,7 @@
               )}
             </Form.Item>
           </Col>
-          <Col span={24}>
+          {/* <Col span={24}>
             <Form.Item label={
               <Tooltip placement="topLeft" title="璺宠繃鏉冮檺楠岃瘉鏃讹紝椤甸潰涓粍浠跺強鎸夐挳涓嶅湪杩涜鏉冮檺鎺у埗銆�">
                 <QuestionCircleOutlined className="mk-form-tip" />
@@ -146,7 +129,7 @@
                 </Radio.Group>
               )}
             </Form.Item>
-          </Col>
+          </Col> */}
           <Col span={24}>
             <Form.Item label={
               <Tooltip placement="topLeft" title="浣跨敤鐧诲綍楠岃瘉鍚庯紝鐢ㄦ埛蹇呴』鐧诲綍绯荤粺鍚庢墠鍙互璁块棶锛屾敞锛氬惈鏈夌櫥褰曠粍浠剁殑椤甸潰涓棤鏁堛��">
diff --git a/src/views/pcdesign/index.jsx b/src/views/pcdesign/index.jsx
index c0f43de..8f0fe1c 100644
--- a/src/views/pcdesign/index.jsx
+++ b/src/views/pcdesign/index.jsx
@@ -1053,9 +1053,8 @@
       nodes.login = true
       nodes.children = []
     }
-    if (config.permission !== 'true') {
+    if (nodes.children.length === 0) {
       nodes.pass = true
-      nodes.children = []
     }
 
     return nodes
diff --git a/src/views/pcdesign/menuform/index.jsx b/src/views/pcdesign/menuform/index.jsx
index 1439d02..8b16673 100644
--- a/src/views/pcdesign/menuform/index.jsx
+++ b/src/views/pcdesign/menuform/index.jsx
@@ -25,8 +25,8 @@
       this.props.updateConfig({...config, cacheUseful: value})
     } else if (key === 'timeUnit') {
       this.props.updateConfig({...config, timeUnit: value})
-    } else if (key === 'permission') {
-      this.props.updateConfig({...config, permission: value})
+    // } else if (key === 'permission') {
+    //   this.props.updateConfig({...config, permission: value})
     }
   }
 
@@ -111,7 +111,7 @@
               )}
             </Form.Item>
           </Col>
-          <Col span={24}>
+          {/* <Col span={24}>
             <Form.Item label={
               <Tooltip placement="topLeft" title="璺宠繃鏉冮檺楠岃瘉鏃讹紝椤甸潰涓粍浠跺強鎸夐挳涓嶅湪杩涜鏉冮檺鎺у埗銆�">
                 <QuestionCircleOutlined className="mk-form-tip" />
@@ -127,7 +127,7 @@
                 </Radio.Group>
               )}
             </Form.Item>
-          </Col>
+          </Col> */}
           <Col span={24}>
             <Form.Item label={
               <Tooltip placement="topLeft" title="浣跨敤鐧诲綍楠岃瘉鍚庯紝鐢ㄦ埛蹇呴』鐧诲綍绯荤粺鍚庢墠鍙互璁块棶锛屾敞锛氬惈鏈夌櫥褰曠粍浠剁殑椤甸潰涓棤鏁堛��">

--
Gitblit v1.8.0