mirror of
https://github.com/PlayEdu/backend
synced 2025-12-23 18:49:59 +08:00
资源分类
This commit is contained in:
@@ -55,7 +55,7 @@ export const ResourceImagesPage = () => {
|
||||
|
||||
// 获取图片资源的分类
|
||||
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]);
|
||||
|
||||
Reference in New Issue
Block a user