shaogen1995 4 лет назад
Родитель
Сommit
ddba16bda9
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      src/pages/editPages/cultural-relic/index.vue

+ 5 - 1
src/pages/editPages/cultural-relic/index.vue

@@ -563,7 +563,11 @@ export default {
           }]
         }
         setTimeout(() => {
-          this.uploadList = this.form.typeImages ? JSON.parse(this.form.typeImages) : []
+          // this.uploadList = this.form.typeImages ? JSON.parse(this.form.typeImages) : []
+          let temp = this.form.urlList.split(',')
+          if (temp[0] === '') this.uploadList = []
+          else this.uploadList = temp
+          // this.uploadList = this.form.typeImages ? JSON.parse(this.form.typeImages) : []
         })
       }
     } else {