main
SD-20230427NBFT\Administrator 8 months ago
parent 5c50ecdf8e
commit f205ae98e2
  1. 5
      pagesA/merge/face_1.vue

@ -242,6 +242,11 @@
let filePath = edetail;
let _date = new Date();
let ext_name = filePath.substr(filePath.lastIndexOf('.'));
if (ext_name !== 'png' && ext_name !== 'jpg' && ext_name !== 'jpeg') {
_this.$com.showError('请上传 png / jpg / jpeg 格式的图片');
return false;
}
let address = _date.getFullYear() + '' + (_date.getMonth() + 1) + '' + _date.getDate();
let fileName = address + _date.getTime() + ext_name;
const img_info = await unit.getImgInfo(filePath);

Loading…
Cancel
Save