资源分类

This commit is contained in:
禺狨
2023-03-08 17:59:59 +08:00
parent c70379c25e
commit 8cde51d53b
16 changed files with 568 additions and 15 deletions

View File

@@ -60,7 +60,7 @@ export const UploadImageButton = (props: PropsInterface) => {
// 获取图片资源的分类
const getCategories = () => {
resourceCategory.resourceCategoryList("IMAGE").then((res: any) => {
resourceCategory.resourceCategoryList().then((res: any) => {
let data = res.data.data;
if (data.length > 0) {
setCategories([...categories, ...res.data.data]);