<input type="file" @change="getFile($event)">
getFile:function(e){
var base64 = "";
let file = e.target.files[0];
let reader = new FileReader();
reader.readAsDataURL(file);
reader.onload = function (e) {
//console.log(e.target.result);
base64 = e.target.result;
}
console.log(base64); //
}
questions are written in comments