修复图文动态发布数据显示问题
This commit is contained in:
parent
7883872ee4
commit
d6f48301ef
|
@ -41,6 +41,7 @@ export default function CreateImagePost() {
|
||||||
"POST",
|
"POST",
|
||||||
"/api/zone_moment/list_statistics_by_creater_mid"
|
"/api/zone_moment/list_statistics_by_creater_mid"
|
||||||
);
|
);
|
||||||
|
|
||||||
if (_data.ret === -1) {
|
if (_data.ret === -1) {
|
||||||
Toast.show({
|
Toast.show({
|
||||||
icon: "fail",
|
icon: "fail",
|
||||||
|
@ -49,11 +50,6 @@ export default function CreateImagePost() {
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const ttt = _data.data.streamer.album.images.map((item) => ({
|
|
||||||
url: item.urls[0],
|
|
||||||
id: item.id,
|
|
||||||
}));
|
|
||||||
setOldPhotos(ttt);
|
|
||||||
setPostCount(_data.data);
|
setPostCount(_data.data);
|
||||||
if (_data.data.rejected_count >= 5) setIsBlockModalVisible(true);
|
if (_data.data.rejected_count >= 5) setIsBlockModalVisible(true);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Reference in New Issue