This commit is contained in:
李想 2025-04-17 15:27:04 +08:00
commit c38566e76b
2 changed files with 4 additions and 4 deletions

View File

@ -47,8 +47,8 @@
<el-image <el-image
style="border-radius: 5px; height: 80px; width: 120px; margin-bottom: -5px" style="border-radius: 5px; height: 80px; width: 120px; margin-bottom: -5px"
lazy lazy
:preview-src-list="[baseUrl + scope.row.imgUrl]" :preview-src-list="[scope.row.imgUrl]"
:src="baseUrl + scope.row.imgUrl" :src="scope.row.imgUrl"
fit="cover" fit="cover"
></el-image> ></el-image>
</template> </template>

View File

@ -30,8 +30,8 @@
</el-table-column> </el-table-column>
<el-table-column label="店铺图片" align="center" prop="shopImg" width="180"> <el-table-column label="店铺图片" align="center" prop="shopImg" width="180">
<template v-slot:default="{ row }"> <template v-slot:default="{ row }">
<div class="image" @click="previewImage(row.shopImg, row)"> <div class="image" @click="previewImage(row.shopImg.length > 0 ? row.shopImg.split(',')[0] : '', row)">
<img style="width: 50px; height: 50px" :src="row.shopImg" /> <img style="width: 50px; height: 50px" :src="row.shopImg.length > 0 ? row.shopImg.split(',')[0] : ''" />
</div> </div>
</template> </template>
</el-table-column> </el-table-column>