From 1c86e32abdc14d765de83db92bb16c05294c15b5 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 02 十二月 2021 18:45:48 +0800
Subject: [PATCH] 2021-12-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 d4474f5..03da9bc 100644
--- a/src/views/mobdesign/index.jsx
+++ b/src/views/mobdesign/index.jsx
@@ -235,9 +235,9 @@
         return
       }
 
-      let homeId = MenuID || ''
+      let homeId = ''
       let appViewList = []
-      if (!homeId && res.data && res.data.length > 0) {
+      if (res.data && res.data.length > 0) {
         appViewList = res.data
         appViewList.forEach(item => {
           if (item.keys_type === 'index') {
@@ -247,7 +247,7 @@
       }
 
       if (!homeId) {
-        homeId = Utils.getuuid()
+        homeId = MenuID || Utils.getuuid()
 
         let param = {
           func: 's_kei_link_keyids_addupt',
@@ -286,7 +286,7 @@
         })
       } else {
         sessionStorage.setItem('appViewList', JSON.stringify(appViewList))
-        this.props.history.replace('/mobdesign/' + window.btoa(window.encodeURIComponent(JSON.stringify({MenuID: homeId, type: 'view'}))))
+        this.props.history.replace('/mobdesign/' + window.btoa(window.encodeURIComponent(JSON.stringify({MenuID: MenuID || homeId, type: 'view'}))))
       }
     })
   }

--
Gitblit v1.8.0