From c6d0dcdccdb898e1abcdb7fb8312d3b7b653743f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 16 八月 2022 01:34:18 +0800 Subject: [PATCH] 2022-08-16 --- src/tabviews/custom/components/timeline/normal-timeline/index.jsx | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/tabviews/custom/components/timeline/normal-timeline/index.jsx b/src/tabviews/custom/components/timeline/normal-timeline/index.jsx index 51dcbef..2cd51ef 100644 --- a/src/tabviews/custom/components/timeline/normal-timeline/index.jsx +++ b/src/tabviews/custom/components/timeline/normal-timeline/index.jsx @@ -27,7 +27,8 @@ sync: false, // 鏄惁缁熶竴璇锋眰鏁版嵁 data: null, // 鏁版嵁 BData: '', - card: null + card: null, + description: false } /** @@ -322,6 +323,8 @@ message: '鏈幏鍙栧埌蹇�掍俊鎭�', duration: 10 }) + } else if (/鏌ヨ鏃犵粨鏋�/.test(res)) { + this.setState({description: res, data: [], loading: false}) } else { let data = res.split(/\n/).filter(Boolean) @@ -429,7 +432,7 @@ } render() { - const { config, loading, data } = this.state + const { config, loading, data, description } = this.state return ( <div className="normal-timeline-box" id={'anchor' + config.uuid} style={{...config.style}}> @@ -447,7 +450,7 @@ {data.map(item => this.getMknodes(item))} </div> : null} {data && data.length === 0 ? <div className="card-row-list" style={{height: config.wrap.contentHeight}}> - <Empty description={false}/> + <Empty description={description}/> </div> : null} </div> ) -- Gitblit v1.8.0