Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dragon-fish committed Jul 15, 2021
1 parent 1dde549 commit b44e734
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 20 deletions.
21 changes: 10 additions & 11 deletions src/components/AuthorCard.vue
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
<template lang="pug">
card
.authorCard
.flex-center
.left
router-link(:to="'/users/' + user.userId")
img(:src="API + user.imageBig" alt="")
.right
h4: strong
router-link(:to="'/users/' + user.userId") {{ user.name }}
p.description.pre {{ user.comment }}
card.authorCard
.flex-center
.left
router-link(:to="'/users/' + user.userId")
img(:src="API + user.imageBig" alt="")
.right
h4: strong
router-link(:to="'/users/' + user.userId") {{ user.name }}
p.description.pre {{ user.comment }}

ArtworksMiniList.inline.tiny(:list="user.illusts")
ArtworksMiniList.inline.tiny(:list="user.illusts")
</template>

<script lang="ts">
Expand Down
2 changes: 1 addition & 1 deletion src/components/Comment/CommentsArea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
.showMore.align-center
a.button(
v-if="comments.length && hasNext"
@click="getComments(id)"
@click="init(id)"
)
| {{ loading ? '正在加载' : '查看更多' }}
| &nbsp;
Expand Down
16 changes: 8 additions & 8 deletions src/view/artworks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ section.illust-container(v-if="!error && !loading")

.artworkInfo
h1(:class="illust.xRestrict ? 'danger' : ''") {{ illust.illustTitle }}
p.description.pre(v-html="illust.description || '(无简介)'")
p.description.pre(v-html="illust.description")
p.description.noDesc(v-if="!illust.description" :style="{color: '#aaa'}") (无简介)
p.canonicalLink
a.button(
:href="illust?.extraData?.meta?.canonical || '#'"
target="_blank"
rel="noopener noreferrer"
) 在 Pixiv 上查看 →

p.stats
span.isOriginal(v-if="illust.isOriginal")
Expand All @@ -32,13 +39,6 @@ section.illust-container(v-if="!error && !loading")

p.createDate {{ new Date(illust.createDate).toLocaleString() }}

.align-center
a.button(
:href="illust?.extraData?.meta?.canonical || '#'"
target="_blank"
rel="noopener noreferrer"
) 在 Pixiv 上查看 →

.artworkTags
span.xRestrict(v-if="illust.xRestrict" title="R-18") R-18
art-tag(:key="_" v-for="(item, _) in illust.tags.tags" :tag="item.tag")
Expand Down

0 comments on commit b44e734

Please sign in to comment.