Browse Source

【口岸监管服务系统】企业资质备案,编辑删除附件,保存后进行查看,附件还在

CzRger 9 months ago
parent
commit
7760825467
1 changed files with 2 additions and 2 deletions
  1. 2 2
      snowy-admin-web/src/components/XnUpload/index.vue

+ 2 - 2
snowy-admin-web/src/components/XnUpload/index.vue

@@ -330,8 +330,8 @@
 			}
 			return
 		}
-		emit('update:value', undefined)
-		emit('onChange', undefined)
+		emit('update:value', typeof props.value == 'string' ? '' : [])
+		emit('onChange', typeof props.value == 'string' ? '' : [])
 	}
 	// 通过DOM获取上传的文件
 	const uploadFileList = () => {