From 7f7423b44baf995a4a9b45abe27749b9820de7dd Mon Sep 17 00:00:00 2001 From: wangxueliang Date: Mon, 16 Apr 2018 15:14:30 +0800 Subject: [PATCH] fix vc-upload propstype --- components/vc-upload/src/Upload.jsx | 8 ++++---- site/routes.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/vc-upload/src/Upload.jsx b/components/vc-upload/src/Upload.jsx index 8eb5a3522..73ec72de9 100644 --- a/components/vc-upload/src/Upload.jsx +++ b/components/vc-upload/src/Upload.jsx @@ -4,8 +4,8 @@ import BaseMixin from '../../_util/BaseMixin' import AjaxUpload from './AjaxUploader' import IframeUpload from './IframeUploader' -// function empty () { -// } +function empty () { +} const uploadProps = { componentTag: PropTypes.string, @@ -47,8 +47,8 @@ export default { // onSuccess: empty, supportServerRender: false, multiple: false, - beforeUpload: null, - customRequest: null, + beforeUpload: empty, + customRequest: empty, withCredentials: false, }), data () { diff --git a/site/routes.js b/site/routes.js index e969297dd..2b214efe2 100644 --- a/site/routes.js +++ b/site/routes.js @@ -3,7 +3,7 @@ import Layout from './components/layout.vue' const AsyncTestComp = () => { const d = window.location.hash.replace('#', '') return { - component: import(`../components/tree/demo/${d}`), + component: import(`../components/vc-upload/demo/${d}`), } }