Extremely scary, when using the Vue-simple-upload plugin to do file upload, encountered always access to the background of the interface.
I thought I use plug-ins have problems, various changes, because unfamiliar, false change several times.
Emmmm~~ originally is my action parameter to the lowercase post, start console error, gave so obvious hint,
I can't believe I don't understand.
OK, first step, download
NPM Install Vue-simple-uploader--save
The second step is to guide the build to be used:
import FileUpload from ' Vue-simple-upload/dist/fileupload ' the third step, then define the following: Components
: {
FileUpload
Step Fourth, using:
<file-upload class= "UploadFile" target= "My url" action= "POST" > </ File-upload> Basic use is this, but I will not modify the style, will modify the style of the small partner, let me know, thank you ~ by Cool Dog
How to use Vue file upload vue-simple-upload