This commit is contained in:
wangzenghua 2025-04-17 08:23:57 +01:00
parent a99c523128
commit d7fdbc9eae

View File

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