File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11<template >
22 <div class =" upload-container" >
33 <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 " >
55 <i class =" el-icon-upload" ></i >
66 <div class =" el-upload__text" >将文件拖到此处,或<em >点击上传</em ></div >
77 </el-upload >
@@ -43,7 +43,7 @@ export default {
4343 emitInput (val ) {
4444 this .$emit (' input' , val)
4545 },
46- handleImageScucess () {
46+ handleImageSuccess () {
4747 this .emitInput (this .tempUrl )
4848 },
4949 beforeUpload () {
Original file line number Diff line number Diff line change 11<template >
22 <div class =" singleImageUpload2 upload-container" >
33 <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 " >
55 <i class =" el-icon-upload" ></i >
66 <div class =" el-upload__text" >Drag或<em >点击上传</em ></div >
77 </el-upload >
@@ -42,7 +42,7 @@ export default {
4242 emitInput (val ) {
4343 this .$emit (' input' , val)
4444 },
45- handleImageScucess () {
45+ handleImageSuccess () {
4646 this .emitInput (this .tempUrl )
4747 },
4848 beforeUpload () {
Original file line number Diff line number Diff line change 11<template >
22 <div class =" upload-container" >
33 <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 " >
55 <i class =" el-icon-upload" ></i >
66 <div class =" el-upload__text" >将文件拖到此处,或<em >点击上传</em ></div >
77 </el-upload >
@@ -50,7 +50,7 @@ export default {
5050 emitInput (val ) {
5151 this .$emit (' input' , val)
5252 },
53- handleImageScucess (file ) {
53+ handleImageSuccess (file ) {
5454 this .emitInput (file .files .file )
5555 },
5656 beforeUpload () {
You can’t perform that action at this time.
0 commit comments