| subPackage/workbench/views/editExamine.vue | ●●●●● patch | view | raw | blame | history |
subPackage/workbench/views/editExamine.vue
@@ -138,19 +138,21 @@ return } const placePractitioner = data?.placePractitioner || [] console.log(data); Object.keys(this.form).forEach(key => { this.form[key] = data[key] if (key === 'imageUrls' || key === 'planImageUrls') { data[key] = data[key] || '' this.form[key] = [] if (!!data[key]) { data[key] = JSON.parse(data[key]) if (Array.isArray(data[key])) { this.form[key] = data[key] } } else { this.form[key].push(data[key]) } } } }) console.log(this.form);