优化代码

This commit is contained in:
java110 2020-08-15 17:33:13 +08:00
parent a6bdcd72e1
commit b7a2d3a519
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@
<span class="btn btn-default btn-file" v-on:click="_uploadPhoto($event)">
<span class="fileinput-new">上传照片</span>
</span>
<input type="file" class="file" accept="images/*" id="uploadOwnerPhoto" hidden
<input type="file" class="file" accept=".jpg" id="uploadOwnerPhoto" hidden
v-on:change="_choosePhoto($event)">
</div>
</div>

View File

@ -205,7 +205,7 @@
},
_uploadPhoto: function (event) {
console.log('上传图片');
vc.component.addOwnerInfo.ownerPhoto = "";
//vc.component.addOwnerInfo.ownerPhoto = "";
$("#uploadOwnerPhoto").trigger("click")
},
_choosePhoto: function (event) {