refactor: reorg

This commit is contained in:
2026-02-27 12:34:55 +08:00
parent 88cfe03779
commit 807ce5a406
6 changed files with 30 additions and 26 deletions
+1 -3
View File
@@ -26,8 +26,6 @@ export const Article: Component<ArticleProps> = (props) => {
fetchArticleContent
);
let articleRef: HTMLArticleElement | undefined;
createEffect(() => {
const data = content();
if (data) {
@@ -40,7 +38,7 @@ export const Article: Component<ArticleProps> = (props) => {
});
return (
<article ref={articleRef} class={`prose ${props.class || ''}`} data-src={props.src}>
<article class={`prose ${props.class || ''}`} data-src={props.src}>
<Show when={content.loading}>
<div class="text-gray-500">...</div>
</Show>