<input name="file" type="file" @change="update" />
<img :src="imgSrc" alt="">
update(e) {const file = e.target.files[0] || e.dataTransfer.files[0]let URL = window.URL || window.webkitURL; // 当前地址this.imgSrc = URL.createObjectURL(file); // 转成 blob地址}