Commit 64fcb462 authored by qingwei.li's avatar qingwei.li Committed by 杨奕

Upload: fix ssr suppport

parent 191c8ab3
......@@ -209,7 +209,7 @@ export default {
ref: 'upload-inner'
};
var uploadComponent = this.$isServer ? '' : typeof FormData !== 'undefined'
var uploadComponent = (typeof FormData !== 'undefined' || this.$isServer)
? <upload {...props}>{this.$slots.default}</upload>
: <iframeUpload {...props}>{this.$slots.default}</iframeUpload>;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment