浏览代码

修改bug

chenrui 1 年之前
父节点
当前提交
8b52a7a0aa
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/views/promotionRulesManagement/dealerPromotions/detail.vue

+ 5 - 0
src/views/promotionRulesManagement/dealerPromotions/detail.vue

@@ -218,6 +218,11 @@ export default {
       dealerPromotionInfo({ sn: this.$route.query.sn }).then(res => {
         if (res.status == 200) {
           this.$refs.table.refresh(true)
+          if (res.data && res.data.attachmentList) {
+            res.data.attachmentList.forEach(item => {
+              item.filePath = item.filePath.replace(/^http:\/\//i, 'https://')
+            })
+          }
           this.detailData = res.data || null
         } else {
           this.detailData = null