Skip to content

Commit ce45f74

Browse files
committed
2 parents bc2010d + 7f7423b commit ce45f74

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

components/vc-upload/src/Upload.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import BaseMixin from '../../_util/BaseMixin'
44
import AjaxUpload from './AjaxUploader'
55
import IframeUpload from './IframeUploader'
66

7-
// function empty () {
8-
// }
7+
function empty () {
8+
}
99

1010
const uploadProps = {
1111
componentTag: PropTypes.string,
@@ -47,8 +47,8 @@ export default {
4747
// onSuccess: empty,
4848
supportServerRender: false,
4949
multiple: false,
50-
beforeUpload: null,
51-
customRequest: null,
50+
beforeUpload: empty,
51+
customRequest: empty,
5252
withCredentials: false,
5353
}),
5454
data () {

site/routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Layout from './components/layout.vue'
33
const AsyncTestComp = () => {
44
const d = window.location.hash.replace('#', '')
55
return {
6-
component: import(`../components/tree/demo/${d}`),
6+
component: import(`../components/vc-upload/demo/${d}`),
77
}
88
}
99

0 commit comments

Comments
 (0)