feat: tips for empty search result (#900)

This commit is contained in:
洪布斯 2023-01-09 15:50:07 +08:00 committed by GitHub
parent 7c83bd05a5
commit 509eec5f87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 21 additions and 9 deletions

View file

@ -87,6 +87,9 @@ const activate = () => {
:result="result"
:tabindex="focused ? 0 : -1"
/>
<span v-if="query.length !== 0 && results.length === 0" block text-center text-sm text-secondary>
{{ t('search.search_empty') }}
</span>
</template>
<div v-else>
<SearchResultSkeleton />