Explorar el Código

修改3d轮播图回显

shaogen1995 hace 4 años
padre
commit
ddba16bda9
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  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 {