From b449aca90c49fe8ee96f1c040c5953fcdd2ca15d Mon Sep 17 00:00:00 2001 From: liuwh <hugeinfo123> Date: Mon, 06 Apr 2020 17:49:41 +0800 Subject: [PATCH] 新建文档 --- src/components/common/TopListTableView/index.jsx | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/components/common/TopListTableView/index.jsx b/src/components/common/TopListTableView/index.jsx index 0b8423b..859bf83 100644 --- a/src/components/common/TopListTableView/index.jsx +++ b/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 }) -- Gitblit v1.8.0