feat:更新上传图片和视频组件
This commit is contained in:
@@ -37,8 +37,8 @@
|
||||
<!-- 单媒体内容(图片优先于视频) -->
|
||||
<el-image
|
||||
v-if="props.item?.imageUrl"
|
||||
:src="AListPath + props.item?.imageUrl"
|
||||
:preview-src-list="[AListPath + props.item?.imageUrl]"
|
||||
:src="AListUrl + props.item?.imageUrl"
|
||||
:preview-src-list="[AListUrl + props.item?.imageUrl]"
|
||||
fit="contain"
|
||||
class="media-content"/>
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
v-if="props.item?.videoUrl"
|
||||
controls
|
||||
class="media-content">
|
||||
<source :src="AListPath + props.item?.videoUrl" type="video/mp4">
|
||||
<source :src="AListUrl + props.item?.videoUrl" type="video/mp4">
|
||||
</video>
|
||||
|
||||
<!-- 展开/收起按钮 -->
|
||||
@@ -76,7 +76,7 @@ import { deepCopyObject } from 'vue3-common/utils/dataUtil'
|
||||
import { useJournalStore } from '@/store/journal.ts'
|
||||
import { useAppStore } from '@/store/app.ts'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { AListPath } from '@/utils'
|
||||
import { AListUrl } from '@/utils'
|
||||
|
||||
const props = defineProps({
|
||||
item: {
|
||||
|
||||
Reference in New Issue
Block a user