mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 03:59:01 +08:00
fix(upload): fix upload when edit
instanceof check error
This commit is contained in:
parent
d1fdf38e7d
commit
65b338de2b
@ -36,7 +36,7 @@ export default React.createClass({
|
||||
if (typeof document === 'undefined' ||
|
||||
typeof window === 'undefined' ||
|
||||
!window.FileReader || !window.File ||
|
||||
(!file.originFileObj instanceof File) ||
|
||||
!(file.originFileObj instanceof File) ||
|
||||
file.thumbUrl !== undefined) {
|
||||
return;
|
||||
}
|
||||
|
10
package.json
10
package.json
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "antd",
|
||||
"version": "0.12.0-beta.25",
|
||||
"version": "0.12.0-beta.26",
|
||||
"title": "Ant Design",
|
||||
"description": "一个 UI 设计语言",
|
||||
"homepage": "http://ant.design/",
|
||||
@ -83,6 +83,7 @@
|
||||
"busboy": "^0.2.9",
|
||||
"chalk": "^1.1.0",
|
||||
"css-loader": "^0.23.0",
|
||||
"cz-conventional-changelog": "^1.1.5",
|
||||
"es3ify-loader": "^0.1.0",
|
||||
"eslint": "^1.1.0",
|
||||
"eslint-config-airbnb": "latest",
|
||||
@ -164,5 +165,10 @@
|
||||
"plugins": [
|
||||
"add-module-exports"
|
||||
]
|
||||
},
|
||||
"config": {
|
||||
"commitizen": {
|
||||
"path": "./node_modules/cz-conventional-changelog"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user