|
@@ -1205,9 +1205,12 @@ export default {
|
|
|
const reader = new FileReader()
|
|
|
reader.readAsDataURL(window.uploadFiles[0])
|
|
|
reader.onload = () => {
|
|
|
+ const reg = new RegExp(/image\/png/)
|
|
|
this.imageUrl = reader.result
|
|
|
+ if (this.imageUrl.match(reg)) { // 判断是否是图片
|
|
|
+ this.showCopyFile = true
|
|
|
+ }
|
|
|
}
|
|
|
- this.showCopyFile = true
|
|
|
}
|
|
|
},
|
|
|
async confirmUpload() {
|