diff --git a/src/ai/list/index.jsx b/src/ai/list/index.jsx index 134a1238..b52768a8 100644 --- a/src/ai/list/index.jsx +++ b/src/ai/list/index.jsx @@ -249,10 +249,12 @@ function List(props) { if (res && res.data && res.data.rows) { setList(res.data.rows.map(row => { const { projectProperties, id } = row; + const imageUrl = projectProperties.authorImageUrl.split(':4000/') && projectProperties.authorImageUrl.split(':4000/')[1] + const authorImageUrl = imageUrl ? `${window.location.origin}/${imageUrl}` : projectProperties.authorImageUrl return { id: id, name: projectProperties.fromOwner === "AI-RESOURCE" ? projectProperties.name.split("/").pop() : projectProperties.name, - image: projectProperties.authorImageUrl, + image: authorImageUrl, isNew: false, url: projectProperties.fullName, desc: projectProperties.description, @@ -398,9 +400,9 @@ function List(props) { {list.map((model) => ( {type === "agents" ?
-
+
- {model.name} + {model.name}
{model.desc}
diff --git a/src/forums/list/forumList.jsx b/src/forums/list/forumList.jsx index ce74e75d..afcc8c9a 100644 --- a/src/forums/list/forumList.jsx +++ b/src/forums/list/forumList.jsx @@ -26,7 +26,9 @@ function ForumList({title="最新帖子", forumList, LIMIT, page, setPage, total
{forumList.map((item, index) => { - const orderIndex = index+LIMIT*(page-1) + const orderIndex = index+LIMIT*(page-1); + const imageUrl = item.image_url.split(':4000/') && item.image_url.split(':4000/')[1] + const authorImageUrl = imageUrl ? `${window.location.origin}/${imageUrl}` : item.image_url return
{orderIndex < 3 ? : {orderIndex + 1}} @@ -39,7 +41,7 @@ function ForumList({title="最新帖子", forumList, LIMIT, page, setPage, total
- + {item.username} {item.published_time}