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