修复种子封面路径
Change-Id: I9e5560fbdf226bd0ede9e35b8dbc1249ed67ced4
diff --git a/src/pages/Forum/posts-detail/PostDetailPage.jsx b/src/pages/Forum/posts-detail/PostDetailPage.jsx
index f703fd6..2e4874a 100644
--- a/src/pages/Forum/posts-detail/PostDetailPage.jsx
+++ b/src/pages/Forum/posts-detail/PostDetailPage.jsx
@@ -14,11 +14,11 @@
// 如果是 /images/... ,替换成 /uploads/post/...
if (url.startsWith('/images/')) {
// 这里把 /images/ 替换成 /uploads/post/
- return `http://localhost:8080/uploads/post/${url.slice('/images/'.length)}`;
+ return `http://localhost:5011/uploads/post/${url.slice('/images/'.length)}`;
}
// 其它情况默认直接拼接,不加斜杠
- return `http://localhost:8080${url.startsWith('/') ? '' : '/'}${url}`;
+ return `http://localhost:5011${url.startsWith('/') ? '' : '/'}${url}`;
};
@@ -26,7 +26,7 @@
export function formatAvatarUrlNoDefault(avatarUrl) {
if (!avatarUrl) return '';
if (avatarUrl.startsWith('http')) return avatarUrl;
- return `http://localhost:8080${avatarUrl}`;
+ return `http://localhost:5011${avatarUrl}`;
}
const PostDetailPage = () => {