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/pcdesign/index.jsx |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/views/pcdesign/index.jsx b/src/views/pcdesign/index.jsx
index 3b64363..463841e 100644
--- a/src/views/pcdesign/index.jsx
+++ b/src/views/pcdesign/index.jsx
@@ -91,7 +91,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') {
         this.setState({
           MenuId: param.MenuID
@@ -193,7 +193,7 @@
     this.props.history.push('/pcdesign/' + param)
   }
 
-  getAppMessage = () => {
+  getAppMessage = (MenuID) => {
     Api.getSystemConfig({
       func: 's_get_keyids',
       bid: sessionStorage.getItem('appId')
@@ -207,9 +207,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