Browse Source

update image

yb 10 months ago
parent
commit
d30a8456cf
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/mall/shop/service/index.vue

+ 2 - 1
src/views/mall/shop/service/index.vue

@@ -43,7 +43,7 @@
       <el-table-column :label="t('mall.title')" align="center" prop="name" />
       <el-table-column :label="t('mall.icon')" align="center" prop="image">
         <template #default="scope">
-          <el-image style="width: 100px; height: 100px" :src="scope.row.image"  />
+          <el-image style="width: 100px; height: 100px" :src="convertImageUrl(scope.row.image)"  />
         </template>
       </el-table-column>
       <el-table-column :label="t('mall.type')" align="center" prop="type">
@@ -110,6 +110,7 @@ import { dateFormatter } from '@/utils/formatTime'
 import download from '@/utils/download'
 import * as ServiceApi from '@/api/mall/shop/service'
 import ServiceForm from './ServiceForm.vue'
+import { convertImageUrl } from '@/utils/image-helper'
 const message = useMessage() // 消息弹窗
 const { t } = useI18n() // 国际化