zhangfugui
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
src/components/Tree/src/Tree.vue
|
|
|
@ -105,7 +105,7 @@ |
|
|
|
); |
|
|
|
|
|
|
|
const getNotFound = computed((): boolean => { |
|
|
|
return searchState.startSearch && searchState.searchData?.length === 0; |
|
|
|
return !getTreeData.value || getTreeData.value.length === 0; |
|
|
|
}); |
|
|
|
|
|
|
|
const { |
|
|
|
@ -381,7 +381,7 @@ |
|
|
|
</Tree> |
|
|
|
</ScrollContainer> |
|
|
|
|
|
|
|
<Empty v-show={unref(getNotFound)} class="!mt-4" /> |
|
|
|
<Empty v-show={unref(getNotFound)} image={Empty.PRESENTED_IMAGE_SIMPLE} class="!mt-4" /> |
|
|
|
</div> |
|
|
|
); |
|
|
|
}; |
|
|
|
|