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/subtable/index.jsx |   13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/src/tabviews/subtable/index.jsx b/src/tabviews/subtable/index.jsx
index 8351a54..ee5be01 100644
--- a/src/tabviews/subtable/index.jsx
+++ b/src/tabviews/subtable/index.jsx
@@ -11,8 +11,6 @@
 import UtilsDM from '@/utils/utils-datamanage.js'
 import UtilsUpdate from '@/utils/utils-update.js'
 import { modifyTabview } from '@/store/action'
-
-import SubSearch from '@/tabviews/zshare/topSearch'
 import asyncComponent from '@/utils/asyncComponent'
 import asyncSpinComponent from '@/utils/asyncSpinComponent'
 import NotFount from '@/components/404'
@@ -21,6 +19,7 @@
 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'))
@@ -744,14 +743,8 @@
     return (
       <div className="subtable" id={'subtable' + 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