From b03948f1f9f2998a4649d92263457255438b09b3 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期六, 12 二月 2022 17:37:51 +0800
Subject: [PATCH] 2022-02-12

---
 src/views/mobdesign/index.jsx |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/src/views/mobdesign/index.jsx b/src/views/mobdesign/index.jsx
index 978d229..0f6728d 100644
--- a/src/views/mobdesign/index.jsx
+++ b/src/views/mobdesign/index.jsx
@@ -1102,13 +1102,17 @@
 
       let roleParam = {type: 'view', key: config.uuid, title: config.MenuName, children: []}
       roleParam.children = this.getMenuMessage()
+      config.loginview = false
+      config.tabview = false
 
-      if (config.components.findIndex(item => item.type === 'login') > -1) {
-        roleParam.login = true
-        config.loginview = true
-      } else {
-        config.loginview = false
-      }
+      config.components.forEach(item => {
+        if (item.type === 'login') {
+          roleParam.login = true
+          config.loginview = true
+        } else if (item.type === 'navbar') {
+          config.tabview = true
+        }
+      })
 
       if (adapters.includes('wxmini')) {
         config = this.getMiniStyle(config)

--
Gitblit v1.8.0