diff --git a/README.md b/README.md index bae0a2f..e9a934f 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,9 @@ react + antd + typescript 集成轻量级管理后台 +## 注意 +node version require 16.19.0 +修改config中的配置 dev 测试,prod生成 ## 功能 - 多页标签 diff --git a/src/package/SimpleTrade/pages/home/index.tsx b/src/package/SimpleTrade/pages/home/index.tsx index 1b290f2..1c784f4 100644 --- a/src/package/SimpleTrade/pages/home/index.tsx +++ b/src/package/SimpleTrade/pages/home/index.tsx @@ -104,14 +104,14 @@ const Home: FC = () => { type: 1 }) if (res.code === 0) { - weekTx[0].value = res.data.product_amount - weekTx[1].value = res.data.product_num - weekTx[2].value = res.data.a_profit_num - weekTx[3].value = res.data.b_profit_num - weekTx[4].value = res.data.a_loss_num - weekTx[5].value = res.data.b_loss_num - weekTx[6].value = res.data.profit_amount - weekTx[7].value = res.data.loss_amount + toDayTx[0].value = res.data.product_amount + toDayTx[1].value = res.data.product_num + toDayTx[2].value = res.data.a_profit_num + toDayTx[3].value = res.data.b_profit_num + toDayTx[4].value = res.data.a_loss_num + toDayTx[5].value = res.data.b_loss_num + toDayTx[6].value = res.data.profit_amount + toDayTx[7].value = res.data.loss_amount setToDayTx([...toDayTx]) } }