mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
27 lines
441 B
Vue
27 lines
441 B
Vue
<template>
|
|
<img :src="processedSrc" :alt="alt">
|
|
</template>
|
|
|
|
<script>
|
|
import {convertLocalResourcePath} from "./utils";
|
|
|
|
export default {
|
|
props: {
|
|
src: {
|
|
type: String,
|
|
required: true
|
|
},
|
|
alt: {
|
|
type: String,
|
|
default: ''
|
|
}
|
|
},
|
|
computed: {
|
|
processedSrc({src}) {
|
|
return convertLocalResourcePath(src)
|
|
}
|
|
},
|
|
}
|
|
</script>
|
|
|