Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit 5f1a30a

Browse files
authored
Update README.md
1 parent 974eb7a commit 5f1a30a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default {
3232
```html
3333
<template>
3434
<ele-upload-file
35-
:responseFn="handleResponse"
35+
:responseFn="responseFn"
3636
action="https://jsonplaceholder.typicode.com/posts/"
3737
v-model="file"
3838
/>
@@ -46,7 +46,7 @@ export default {
4646
},
4747
methods: {
4848
// 对请求结果处理, 返回对象
49-
handleResponse(response, file) {
49+
responseFn(response, file) {
5050
return {
5151
url: URL.createObjectURL(file.raw),
5252
name: file.name,

0 commit comments

Comments
 (0)