feat:更新上传图片组件

This commit is contained in:
2026-02-03 23:16:19 +08:00
parent 94270b923c
commit e5e1e5e2b3
9 changed files with 100 additions and 70 deletions

View File

@@ -12,8 +12,8 @@
<el-card class="record-card">
<span class="record-content">完成人{{ item.person }}</span>
<el-image v-if="item.imageUrl"
:src="serviceFileRootPath + item.imageUrl"
:preview-src-list="[serviceFileRootPath + item.imageUrl]"
:src="AListPath + item.imageUrl"
:preview-src-list="[AListPath + item.imageUrl]"
fit="contain" alt="暂无图片" class="record-image"/>
</el-card>
</el-timeline-item>
@@ -25,7 +25,7 @@
<script setup lang="ts">
import { useFoodStore } from '@/store/food.ts'
import { serviceFileRootPath } from '@/utils'
import { AListPath } from '@/utils'
import { SvgIcon } from 'vue3-common'
const foodStore = useFoodStore()