mirror of
https://github.com/PlayEdu/backend
synced 2025-07-19 05:09:35 +08:00
上传图片组件素材库列表数据报错优化
This commit is contained in:
parent
ef9d832570
commit
2bb22b3fd3
@ -80,8 +80,8 @@ export const UploadImageButton = (props: PropsInterface) => {
|
|||||||
resource
|
resource
|
||||||
.resourceList(page, size, "", "", "", "IMAGE", defaultCid + "")
|
.resourceList(page, size, "", "", "", "IMAGE", defaultCid + "")
|
||||||
.then((res: any) => {
|
.then((res: any) => {
|
||||||
setTotal(res.data.total);
|
setTotal(res.data.resul.total);
|
||||||
setImageList(res.data.data);
|
setImageList(res.data.result.data);
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.log("错误,", err);
|
console.log("错误,", err);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user