mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-02 04:08:10 +08:00
Upload: fix ssr suppport
This commit is contained in:
parent
191c8ab3d1
commit
64fcb4627c
@ -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>;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user