src/components/common/TopListTableView/index.jsx
@@ -8,6 +8,8 @@ import React, { ReactNode, ReactEventHandler, Component } from 'react'; import { Table, Row, Col } from 'antd'; import { tagList } from './tagList'; import fetch from '../../../api/request'; import './index.scss'; @@ -22,6 +24,11 @@ } componentWillMount() { fetch({ url: `api/merits/queryMerits` }).then(res => { console.log('res', res); }) this.setState({ topList: tagList })