Эх сурвалжийг харах

Merge pull request #41 from QingWei-Li/master

Upload: missing headers
杨奕 9 жил өмнө
parent
commit
8261e1d124

+ 1 - 0
CHANGELOG.md

@@ -14,6 +14,7 @@
 - 修复 Input Number 输入小数和非数字值时的问题
 - 修复 Select 选中 value 为 0 的值时绑定值不更新的问题
 - 修复 Tree 取消选择某节点后,其同级节点均被取消的问题
+- 修复 Upload 的 headers 属性设置无效
 - 优化 增加打包成 commonjs 且不压缩的文件,默认引入 commonjs
 
 #### 非兼容性更新

+ 1 - 0
packages/upload/src/index.vue

@@ -177,6 +177,7 @@ export default {
         multiple: this.multiple,
         'before-upload': this.beforeUpload,
         'with-credentials': this.withCredentials,
+        headers: this.headers,
         name: this.name,
         accept: this.thumbnailMode ? 'image/*' : this.accept,
         'on-start': this.handleStart,