File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" upload-container" >
3
3
<el-upload class =" image-uploader" :data =" dataObj" drag :multiple =" false" :show-file-list =" false" action =" https://httpbin.org/post"
4
- :on-success =" handleImageScucess " >
4
+ :on-success =" handleImageSuccess " >
5
5
<i class =" el-icon-upload" ></i >
6
6
<div class =" el-upload__text" >将文件拖到此处,或<em >点击上传</em ></div >
7
7
</el-upload >
@@ -43,7 +43,7 @@ export default {
43
43
emitInput (val ) {
44
44
this .$emit (' input' , val)
45
45
},
46
- handleImageScucess () {
46
+ handleImageSuccess () {
47
47
this .emitInput (this .tempUrl )
48
48
},
49
49
beforeUpload () {
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" singleImageUpload2 upload-container" >
3
3
<el-upload class =" image-uploader" :data =" dataObj" drag :multiple =" false" :show-file-list =" false" action =" https://httpbin.org/post"
4
- :on-success =" handleImageScucess " >
4
+ :on-success =" handleImageSuccess " >
5
5
<i class =" el-icon-upload" ></i >
6
6
<div class =" el-upload__text" >Drag或<em >点击上传</em ></div >
7
7
</el-upload >
@@ -42,7 +42,7 @@ export default {
42
42
emitInput (val ) {
43
43
this .$emit (' input' , val)
44
44
},
45
- handleImageScucess () {
45
+ handleImageSuccess () {
46
46
this .emitInput (this .tempUrl )
47
47
},
48
48
beforeUpload () {
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" upload-container" >
3
3
<el-upload class =" image-uploader" :data =" dataObj" drag :multiple =" false" :show-file-list =" false" action =" https://httpbin.org/post"
4
- :on-success =" handleImageScucess " >
4
+ :on-success =" handleImageSuccess " >
5
5
<i class =" el-icon-upload" ></i >
6
6
<div class =" el-upload__text" >将文件拖到此处,或<em >点击上传</em ></div >
7
7
</el-upload >
@@ -50,7 +50,7 @@ export default {
50
50
emitInput (val ) {
51
51
this .$emit (' input' , val)
52
52
},
53
- handleImageScucess (file ) {
53
+ handleImageSuccess (file ) {
54
54
this .emitInput (file .files .file )
55
55
},
56
56
beforeUpload () {
You can’t perform that action at this time.
0 commit comments