feat:增加图片存储模式
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user