lilei hai 1 ano
pai
achega
344943146b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/views/appSetting/versionSettings/editModal.vue

+ 2 - 0
src/views/appSetting/versionSettings/editModal.vue

@@ -187,6 +187,7 @@ export default {
           this.form.downloadUrl = res.data.downloadUrl
           this.form.upgradeContent = res.data.upgradeContent
           this.form.attachment = res.data.attachment
+          this.$refs.attachment.setFileList(res.data.attachment)
         } else {
           this.$refs.ruleForm.resetFields()
         }
@@ -213,6 +214,7 @@ export default {
       if (!newValue) {
         this.$emit('close')
         this.form.attachment = ''
+        this.$refs.attachment.setFileList('')
         this.$refs.ruleForm.resetFields()
       }
     },