Skip to content

Commit ddb7efe

Browse files
yatokuBeiQiaoT
authored andcommitted
fix:修复在支付宝小程序中u-upload组件上传文件提示缺少参数的问题。
close umicro#1210
1 parent 5491842 commit ddb7efe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

uview-ui/components/u-upload/u-upload.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,9 @@ export default {
421421
name: this.name,
422422
formData: this.formData,
423423
header: this.header,
424+
// #ifdef MP-ALIPAY
425+
fileType:'image',
426+
// #endif
424427
success: res => {
425428
// 判断是否json字符串,将其转为json格式
426429
let data = this.toJson && this.$u.test.jsonString(res.data) ? JSON.parse(res.data) : res.data;

0 commit comments

Comments
 (0)