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 11, 2021
1 parent 8c892cb commit 96ab35a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/view/ranking.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
//- 已登录
.isLoggedIn(v-if="userData")
//- Error
h1 排行榜加载失败
section(v-if="error && !loading")
section(v-if="error")
h1 排行榜加载失败
error-page(title="出大问题", :description="error")

//- Loading
Expand All @@ -20,10 +20,10 @@
placeholder

//- Result
section(v-if="!error && list")
section(v-if="list")
h1 排行榜
.desc
| {{ list.date.getFullYear() }}{{ list.date.getMonth() + 1 }}{{ list.date.getDate() }}日 (第{{ list.page }}页)
| {{ list.date.getFullYear() }}{{ list.date.getMonth() + 1 }}{{ list.date.getDate() }} 日 (第{{ list.page }}页)
artworks-list(:list="list.content")
</template>

Expand All @@ -45,6 +45,7 @@ export default {
},
methods: {
init() {
this.error = ''
this.loading = true
this.list = null
Expand Down

0 comments on commit 96ab35a

Please sign in to comment.