From 835ec8a494ecec6da6a4253cf89ee4720f805615 Mon Sep 17 00:00:00 2001 From: sunface Date: Fri, 30 Jul 2021 15:38:45 +0800 Subject: [PATCH] update --- pages/dashboard/tag-moderator.tsx | 2 +- server/internal/tags/test.json | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 server/internal/tags/test.json diff --git a/pages/dashboard/tag-moderator.tsx b/pages/dashboard/tag-moderator.tsx index 669092cb..5ccf8565 100644 --- a/pages/dashboard/tag-moderator.tsx +++ b/pages/dashboard/tag-moderator.tsx @@ -16,7 +16,7 @@ const TagModeratorPage = () => { const [tags, setTags] = useState([]) const [stories,setStories]:[Story[],any] = useState([]) const [tag,setTag]:[Tag,any] = useState(null) - + const getTags = async () => { const res = await requestApi.get(`/tag/list/byUserModeratorRole`) setTags(res.data) diff --git a/server/internal/tags/test.json b/server/internal/tags/test.json new file mode 100644 index 00000000..cdcfa0e1 --- /dev/null +++ b/server/internal/tags/test.json @@ -0,0 +1,13 @@ +{ + "label": ["Mon","Tue","Wed","Thur"], + "data": [ + { + "legend": "出库量", + "value": [120,200,150,80] + }, + { + "legend": "入库量", + "value": [110,180,120,60] + } + ] +} \ No newline at end of file