feat:增加图片存储模式

This commit is contained in:
2026-02-14 16:55:52 +08:00
parent 223a59cd8a
commit 4dc541da85
24 changed files with 333 additions and 468 deletions

View File

@@ -37,7 +37,7 @@
<!-- 单媒体内容图片优先于视频 -->
<el-image
v-if="props.item?.imageUrl"
:src="AListUrl + props.item?.imageUrl"
:src="`${props.item?.imageUrl}${ThumbImageQuery}`"
fit="contain" @click="viewImageClick"
class="media-content"/>
@@ -73,7 +73,7 @@ import { formatDate } from 'vue3-common/utils/dateUtil'
import { useJournalStore } from '@/store/journal.ts'
import { useAppStore } from '@/store/app.ts'
import { useRouter } from 'vue-router'
import { AListUrl } from '@/utils'
import { AListUrl, ThumbImageQuery } from '@/utils'
import { showImagePreview } from 'vant'
const props = defineProps({
@@ -107,8 +107,7 @@ const showToggle = computed(() => overflowLines.value > 0)
const toggleExpand = () => expanded.value = !expanded.value
const viewImageClick = () => {
const imageList = [AListUrl + props.item?.imageUrl]
showImagePreview({ images: imageList, closeable: true })
showImagePreview({ images: [props.item?.imageUrl], closeable: true })
}
const editClick = async () => {