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}}/>