feat: show quantity in category search in post list. (#70)

pull/72/head
Ryan Wang 2020-02-24 14:18:35 +08:00 committed by GitHub
parent 65f078efa3
commit c492e138d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@
<a-select-option
v-for="category in categories"
:key="category.id"
>{{ category.name }}</a-select-option>
>{{ category.name }} ({{ category.postCount }})</a-select-option>
</a-select>
</a-form-item>
</a-col>
@ -672,7 +672,7 @@ export default {
})
},
loadCategories() {
categoryApi.listAll().then(response => {
categoryApi.listAll(true).then(response => {
this.categories = response.data.data
})
},