From 3e670fc04000adb5f9905c9c7d76ee14da567e47 Mon Sep 17 00:00:00 2001 From: xyx2011 Date: Wed, 5 Jul 2017 13:28:39 -0700 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BB=99=20SSR=20=E9=80=A0?= =?UTF-8?q?=E6=88=90bug=20=E7=9A=84window=20=E5=AF=B9=E8=B1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit uploadUrl 可以通过prop传入 --- index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/index.js b/index.js index eb4c624..a0dfd50 100644 --- a/index.js +++ b/index.js @@ -41,10 +41,7 @@ var ReactQiniu = React.createClass({ }, getDefaultProps: function() { - var uploadUrl = 'http://upload.qiniu.com' - if (window.location.protocol === 'https:') { - uploadUrl = 'https://up.qbox.me/' - } + var uploadUrl = 'http://upload.qiniu.com'; return { supportClick: true,