Skip to content

Commit

Permalink
chore: 将 empty.vue 与 empty.taro.vue 同步
Browse files Browse the repository at this point in the history
  • Loading branch information
daiwanxing committed Jul 7, 2024
1 parent bc24a8a commit b2b2e23
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/packages/__VUE/empty/empty.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,7 @@ const style = computed(() => {
return {}
})
const src = computed(() => {
if (props.image.startsWith('https://') || props.image.startsWith('http://') || props.image.startsWith('//')) {
return props.image
} else {
return defaultStatus[props.image]
}
})
const src = computed(() => /^https?:\/\/|^\/\//.test(props.image) ? props.image : defaultStatus[props.image])
const descriptionText = computed(() => {
return props.description || translate('noData')
})
const descriptionText = computed(() => props.description || translate('noData'))
</script>

0 comments on commit b2b2e23

Please sign in to comment.