From 097acb4f6c4fd37228ee80202bbcb48458087673 Mon Sep 17 00:00:00 2001 From: vapao Date: Wed, 25 Nov 2020 10:11:02 +0800 Subject: [PATCH] ant migrate v4 --- spug_web/src/layout/index.js | 2 +- spug_web/src/pages/home/RequestTop.js | 2 +- spug_web/src/pages/home/StatisticCard.js | 24 ++++++++++++++++++++---- 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/spug_web/src/layout/index.js b/spug_web/src/layout/index.js index ebface9..5f9d5de 100644 --- a/spug_web/src/layout/index.js +++ b/spug_web/src/layout/index.js @@ -27,8 +27,8 @@ function initRoutes(routes) { } } -initRoutes(routes) updatePermissions() +initRoutes(routes) // 404 function NotFound() { diff --git a/spug_web/src/pages/home/RequestTop.js b/spug_web/src/pages/home/RequestTop.js index 7b877bd..db22eaa 100644 --- a/spug_web/src/pages/home/RequestTop.js +++ b/spug_web/src/pages/home/RequestTop.js @@ -58,7 +58,7 @@ export default function () { onClick={() => handleClick('week')}>本周 handleClick('month')}>本月 - + )}> diff --git a/spug_web/src/pages/home/StatisticCard.js b/spug_web/src/pages/home/StatisticCard.js index 78dda48..10b9400 100644 --- a/spug_web/src/pages/home/StatisticCard.js +++ b/spug_web/src/pages/home/StatisticCard.js @@ -28,22 +28,38 @@ export default class StatisticCard extends React.Component { - {v}} suffix="个"/> + 个} + formatter={v => {v}}/> - {v}} suffix="台"/> + 台} + formatter={v => {v}}/> - {v}} suffix="个"/> + 个} + formatter={v => {v}}/> - {v}} suffix="项"/> + 项} + formatter={v => {v}}/>