feat:更新上传图片和视频组件

This commit is contained in:
2026-02-04 22:24:39 +08:00
parent e5e1e5e2b3
commit 45342fb55c
17 changed files with 328 additions and 107 deletions

View File

@@ -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: {