From cb0a06de99bd629c2021e3d9b32fe8eae8c54879 Mon Sep 17 00:00:00 2001 From: Mr Ke <kelq@hugeinfo.com.cn> Date: Wed, 24 Jun 2020 17:36:39 +0800 Subject: [PATCH] 文本回填 --- src/components/common/HotListTableView/index.jsx | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/components/common/HotListTableView/index.jsx b/src/components/common/HotListTableView/index.jsx index 7b6b778..92ea24a 100644 --- a/src/components/common/HotListTableView/index.jsx +++ b/src/components/common/HotListTableView/index.jsx @@ -45,7 +45,6 @@ fetch({ url: `api/news/keywordlist` }).then(res => { - console.log('res', res); this.setState({ loading: false }) @@ -58,7 +57,6 @@ } setFormData = data => { - console.log('form', data); this.setState({ formData: data, }); @@ -71,14 +69,13 @@ dataIndex: 'title', key: 'title', render: (cur, item) => { - return <a dangerouslySetInnerHTML={{ __html: cur }} onClick={() => { - window.open(item.url) - }}> + return <a dangerouslySetInnerHTML={{ __html: cur }} target="_blank" href={item.url} > </a> } }, { - title: '爬虫时间', + // title: '爬虫时间', + title: '发布时间', key: 'create_time', dataIndex: 'create_time', -- Gitblit v1.8.0