From 213c70792e6af7f9ccef17d778c5f8806fbd513c Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 28 十一月 2019 15:01:24 +0800
Subject: [PATCH] 2019-11-28-01

---
 src/components/sidemenu/index.jsx |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/components/sidemenu/index.jsx b/src/components/sidemenu/index.jsx
index dbd3a56..43397f7 100644
--- a/src/components/sidemenu/index.jsx
+++ b/src/components/sidemenu/index.jsx
@@ -74,17 +74,23 @@
             } else if (child.LinkUrl.split('?')[0] === 'Main/Index' || child.LinkUrl.split('?')[0] === 'bda/rdt') {
               _tmenu.type = 'iframe'
             }
-            try {
-              _tmenu.PageParam = JSON.parse(child.PageParam)
-            } catch (e) {
-              _tmenu.PageParam = {}
+
+            if (_tmenu.type !== 'iframe') {
+              try {
+                _tmenu.PageParam = JSON.parse(child.PageParam)
+              } catch (e) {
+                _tmenu.PageParam = {}
+              }
+              _tmenu.type = _tmenu.PageParam.Template || _tmenu.type
+            } else {
+              _tmenu.LinkUrl = child.LinkUrl
             }
+
             _tmenu.id = n
             _tmenu.MenuID = child.MenuID
             _tmenu.MenuNo = child.MenuNo
             _tmenu.MenuName = child.MenuName
             _tmenu.text = child.MenuName
-            _tmenu.type = _tmenu.PageParam.Template || _tmenu.type
             return _tmenu
           })
         }

--
Gitblit v1.8.0