mirror of
https://github.com/ctwj/urldb.git
synced 2025-11-25 19:37:33 +08:00
22 lines
381 B
Vue
22 lines
381 B
Vue
<template>
|
|
<n-image
|
|
:src="proxyUrl"
|
|
v-bind="$attrs"
|
|
/>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { computed } from 'vue'
|
|
import { useImageUrl } from '~/composables/useImageUrl'
|
|
|
|
interface Props {
|
|
src: string
|
|
}
|
|
|
|
const props = defineProps<Props>()
|
|
const { getImageUrl } = useImageUrl()
|
|
|
|
const proxyUrl = computed(() => {
|
|
return getImageUrl(props.src)
|
|
})
|
|
</script> |