From c7aece35a62b6e91fd98a625bf0e53f64bfbd18d Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 17 八月 2023 16:22:15 +0800
Subject: [PATCH] 2023-08-17

---
 src/mob/modulesource/index.jsx |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/mob/modulesource/index.jsx b/src/mob/modulesource/index.jsx
index 2ee0d7e..69b9bac 100644
--- a/src/mob/modulesource/index.jsx
+++ b/src/mob/modulesource/index.jsx
@@ -16,7 +16,7 @@
   }
 
   UNSAFE_componentWillMount () {
-    const { components } = this.props
+    const { components, viewType } = this.props
     let options = []
     
     if (components) {
@@ -27,6 +27,10 @@
       if (adapters.indexOf('wxmini') === -1) {
         options = options.filter(item => item.adapter !== 'mini')
       }
+    }
+
+    if (viewType === 'popview') {
+      options = options.filter(item => !['topbar', 'navbar', 'login', 'officialAccount'].includes(item.component))
     }
 
     this.setState({
@@ -52,7 +56,7 @@
       content: '',
       onOk() {
         return new Promise(resolve => {
-          Api.getSystemConfig({
+          Api.getCloudConfig({
             func: 's_custom_components_adduptdel',
             c_id: item.uuid,
             images: '',

--
Gitblit v1.8.0