fix: 处理导入时 因为imageId 导致图片不显示的问题

This commit is contained in:
zhangyu
2023-08-02 15:27:50 +08:00
parent cc2e420b6b
commit b1233917a4
2 changed files with 8 additions and 1 deletions

View File

@@ -465,6 +465,10 @@ export default {
return
}
try {
fileString.topo.pens.forEach(item => {
item.imageId = ''
})
console.log(fileString)
this.$post(this.importUrl, fileString).then(response => {
if (response.code == 200 && response.msg == 'success') {
this.$message.success(this.$t('overall.result.success'))
@@ -477,7 +481,7 @@ export default {
reader = null
})
} catch (e) {
this.$message.error(this.$t('IMPORT_FORMAT_ERROR',{ 0: '' }))
this.$message.error(this.$t('IMPORT_FORMAT_ERROR', { 0: '' }))
}
}
} else {