mirror of
https://github.com/PlayEdu/backend
synced 2025-12-23 20:29:39 +08:00
学员页面重复请求api和分类默认展开
This commit is contained in:
@@ -71,8 +71,10 @@ export const UploadImageButton = (props: PropsInterface) => {
|
||||
|
||||
// 加载图片列表
|
||||
useEffect(() => {
|
||||
getImageList();
|
||||
}, [category_ids, refresh, page, size]);
|
||||
if (showModal) {
|
||||
getImageList();
|
||||
}
|
||||
}, [category_ids, refresh, page, size, showModal]);
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user