Skip to content

Commit

Permalink
fix: 修复eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeD3 committed Feb 4, 2023
1 parent 2427f16 commit c98763f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions frontend/components/ArticlesContent/SideBar/Right/Author.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ const props = defineProps({

<template>
<div class="sidebar-block author-block pure mb-20px bg-jj-sidebar">
<NuxtLink href="#" target="_blank" rel class="user-item item pb-1.416rem"
><img :src="props.author.avatar" alt="" class="lazy avatar" loading="lazy" />
<NuxtLink href="#" target="_blank" rel class="user-item item pb-1.416rem">
<img :src="props.author.avatar" alt="" class="lazy avatar" loading="lazy">
<div class="info-box">
<div class="username flex items-center">
<span class="name text-jj-font" style="max-width: 128px"> {{ props.author.name }} </span>
</div>
<div :title="props.author.motto" class="position">
{{ props.author.motto }}
</div>
</div></NuxtLink
>
</div>
</NuxtLink>
</div>
</template>

Expand Down
4 changes: 3 additions & 1 deletion frontend/components/Aside/AuthorList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ const { data: AuthorList } = await useFetch('/api/authors/list')
<template>
<div>
<div v-if="!!AuthorList" class="recommend-author-block sticky-author-block">
<div class="user-block-header">🎖️作者榜</div>
<div class="user-block-header">
🎖️作者榜
</div>
<div class="user-list">
<div v-for="item in AuthorList" :key="item.uid" class="item">
<nuxt-link target="_blank" rel="" class="link">
Expand Down

0 comments on commit c98763f

Please sign in to comment.