Skip to content

Commit 782f138

Browse files
committed
fix: only render img on client
1 parent 0979f50 commit 782f138

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

projects/Repo.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ const { user, repo } = defineProps<{ user: string; repo: string }>();
1010
target="_blank"
1111
style="display: block"
1212
>
13-
<img
14-
:src="`https://github-readme-stats.vercel.app/api/pin/?username=${user}&repo=${repo}${
15-
isDark ? '&theme=dark' : ''
16-
}`"
17-
/>
13+
<ClientOnly>
14+
<img
15+
:src="`https://github-readme-stats.vercel.app/api/pin/?username=${user}&repo=${repo}${
16+
isDark ? '&theme=dark' : ''
17+
}`"
18+
/>
19+
</ClientOnly>
1820
</a>
1921
</template>

0 commit comments

Comments
 (0)