feat: show quantity in category search in post list. (halo-dev/console#70)

pull/3445/head
Ryan Wang 2020-02-24 14:18:35 +08:00 committed by GitHub
parent 53f5180610
commit 105cb49b85
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
})
},