From 06404e701a89955958cbf56213e2eec618d8644d Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 16 十二月 2020 18:36:16 +0800
Subject: [PATCH] 2020-12-16

---
 src/tabviews/subtabtable/index.jsx |   13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/src/tabviews/subtabtable/index.jsx b/src/tabviews/subtabtable/index.jsx
index 68d5052..aef5022 100644
--- a/src/tabviews/subtabtable/index.jsx
+++ b/src/tabviews/subtabtable/index.jsx
@@ -10,16 +10,15 @@
 import Utils from '@/utils/utils.js'
 import UtilsDM from '@/utils/utils-datamanage.js'
 import UtilsUpdate from '@/utils/utils-update.js'
-
 import asyncComponent from '@/utils/asyncComponent'
 import asyncSpinComponent from '@/utils/asyncSpinComponent'
-import SubSearch from '@/tabviews/zshare/topSearch'
 import NotFount from '@/components/404'
 import MKEmitter from '@/utils/events.js'
 
 import './index.scss'
 
 const { TabPane } = Tabs
+const SubSearch = asyncComponent(() => import('@/tabviews/zshare/topSearch'))
 const SubAction = asyncComponent(() => import('@/tabviews/zshare/actionList'))
 const SubTable = asyncSpinComponent(() => import('@/tabviews/zshare/normalTable'))
 const CardComponent = asyncSpinComponent(() => import('@/tabviews/zshare/cardcomponent'))
@@ -562,14 +561,8 @@
     return (
       <div className="subtabtable" id={'subtabtable' + this.props.MenuID}>
         {loadingview && <Spin />}
-        {searchlist && searchlist.length > 0 ?
-          <SubSearch
-            BID={this.props.BID}
-            dict={this.state.dict}
-            searchlist={searchlist}
-            menuType={this.props.menuType}
-            refreshdata={this.refreshbysearch}
-          /> : null
+        {searchlist && searchlist.length ?
+          <SubSearch BID={this.props.BID} searchlist={searchlist} menuType={this.props.menuType} refreshdata={this.refreshbysearch}/> : null
         }
         {config ? <Row className="chart-view" gutter={16}>
           {/* 瑙嗗浘缁� */}

--
Gitblit v1.8.0