mirror of https://github.com/ElemeFE/element
Upload: fix ssr suppport
parent
191c8ab3d1
commit
64fcb4627c
|
@ -209,9 +209,9 @@ export default {
|
||||||
ref: 'upload-inner'
|
ref: 'upload-inner'
|
||||||
};
|
};
|
||||||
|
|
||||||
var uploadComponent = this.$isServer ? '' : typeof FormData !== 'undefined'
|
var uploadComponent = (typeof FormData !== 'undefined' || this.$isServer)
|
||||||
? <upload {...props}>{this.$slots.default}</upload>
|
? <upload {...props}>{this.$slots.default}</upload>
|
||||||
: <iframeUpload {...props}>{this.$slots.default}</iframeUpload>;
|
: <iframeUpload {...props}>{this.$slots.default}</iframeUpload>;
|
||||||
|
|
||||||
if (this.type === 'select') {
|
if (this.type === 'select') {
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue