Browse Source

上传附件报错误

CzRger 8 months ago
parent
commit
7d52eab97a
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', typeof props.value == 'string' ? '' : [])
-		emit('onChange', typeof props.value == 'string' ? '' : [])
+		emit('update:value', typeof props.value == 'object' ? [] : '')
+		emit('onChange', typeof props.value == 'object' ? [] : '')
 	}
 	// 通过DOM获取上传的文件
 	const uploadFileList = () => {