Kaynağa Gözat

上传附件报错误

CzRger 10 ay önce
ebeveyn
işleme
7d52eab97a

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

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