html
<el-upload action="#" accept=".txt" :on-change="handleChangeUpload" :auto-upload="false">
<div class="liulan">浏览</div>
</el-upload>
js
handleChangeUpload(file, fileList) {
var reader = new FileReader();
console.log(file)
reader.readAsText(file.raw, "UTF-8");
reader.onload = function (e) {
const val = e.target.result;
console.log(val)
}
},