|
|
@@ -211,7 +211,7 @@ const normalizeCollectItem = (item, index) => ({
|
|
|
formDataId: getFirstValue(item, ["formDataId", "form_data_id", "id"], index),
|
|
|
title: getFirstValue(item, ["name", "title"], ""),
|
|
|
author: getFirstValue(item, ["create_by", "author"], ""),
|
|
|
- cover: item?.thumb ? getThumb(item.thumb) : '',
|
|
|
+ cover: item?.thumb ? getThumb(item.thumb) : "",
|
|
|
});
|
|
|
|
|
|
const normalizeHistoryItem = (item, index) => ({
|
|
|
@@ -220,12 +220,8 @@ const normalizeHistoryItem = (item, index) => ({
|
|
|
formDefId: getFirstValue(item, ["formDefId", "form_def_id", "defId"], ""),
|
|
|
formDataId: getFirstValue(item, ["formDataId", "form_data_id", "id"], index),
|
|
|
title: getFirstValue(item, ["name", "title"], ""),
|
|
|
- date: getFirstValue(
|
|
|
- item,
|
|
|
- ["create_time", "update_time", "visitTime", "readTime"],
|
|
|
- "",
|
|
|
- ),
|
|
|
- cover: item?.thumb ? getThumb(item.thumb) : '',
|
|
|
+ date: getFirstValue(item, ["updateTime"], ""),
|
|
|
+ cover: item?.thumb ? getThumb(item.thumb) : "",
|
|
|
});
|
|
|
|
|
|
const getReadType = (item) => {
|
|
|
@@ -388,8 +384,6 @@ const goDetail = (item) => {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
-
|
|
|
-
|
|
|
const handleLogout = () => {
|
|
|
logout().then((res) => {
|
|
|
if (res.code == 0) {
|