From 3d4bc79a80eb9cff0f8ef7c53f9685c9ff9fbd2d Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 02 九月 2021 23:17:36 +0800
Subject: [PATCH] 2021-09-02

---
 src/views/mobdesign/index.jsx |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/views/mobdesign/index.jsx b/src/views/mobdesign/index.jsx
index 36f4c49..b981866 100644
--- a/src/views/mobdesign/index.jsx
+++ b/src/views/mobdesign/index.jsx
@@ -88,7 +88,7 @@
           localedict: sessionStorage.getItem('lang') !== 'en-US' ? antdZhCN : antdEnUS,
           dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS
         })
-        this.getAppMessage()
+        this.getAppMessage(param.MenuID)
       } else if (param.type === 'view') {
         window.GLOB.winWidth = 420
         window.GLOB.winHeight = 738
@@ -218,7 +218,7 @@
     this.props.history.push('/mobdesign/' + param)
   }
 
-  getAppMessage = () => {
+  getAppMessage = (MenuID) => {
     Api.getSystemConfig({
       func: 's_get_keyids',
       bid: sessionStorage.getItem('appId')
@@ -232,9 +232,9 @@
         return
       }
 
-      let homeId = ''
+      let homeId = MenuID || ''
       let appViewList = []
-      if (res.data && res.data.length > 0) {
+      if (!homeId && res.data && res.data.length > 0) {
         appViewList = res.data
         appViewList.forEach(item => {
           if (item.keys_type === 'index') {

--
Gitblit v1.8.0