|
@@ -208,13 +208,11 @@ export default {
|
|
}
|
|
}
|
|
// this.file = item.image_path
|
|
// this.file = item.image_path
|
|
try {
|
|
try {
|
|
- const { data, name } = await getBusinessCardImage(item.image_path)
|
|
|
|
- // const type = item.image_path.split('.').pop()
|
|
|
|
- this.file = new File([data], name ?? item.image_path, { type: data.type })
|
|
|
|
- // handleReadFile(data, type, files => {
|
|
|
|
- // // 返回blob
|
|
|
|
|
|
+ const { data } = await getBusinessCardImage({
|
|
|
|
+ path: item.image_path
|
|
|
|
+ })
|
|
|
|
+ this.file = new File([data], item.image_path, { type: data.type })
|
|
this.previewUrl = URL.createObjectURL(data)
|
|
this.previewUrl = URL.createObjectURL(data)
|
|
- // })
|
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
this.$snackbar.error(error)
|
|
this.$snackbar.error(error)
|
|
}
|
|
}
|