fix: 处理导入时 因为imageId 导致图片不显示的问题
This commit is contained in:
@@ -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'))
|
||||
|
||||
@@ -584,6 +584,9 @@ export default {
|
||||
this.$get('stat/module/abnormal', { moduleId: item.moduleId }).then(res => {
|
||||
if (res.code == 200) {
|
||||
const module = res.data.list[0]
|
||||
if (!module) {
|
||||
return
|
||||
}
|
||||
item.moduleData.state.error = item.moduleData.error = !module.state
|
||||
item.moduleData.state.asset = !!module.asset
|
||||
item.moduleData.state.alert = !!module.alert
|
||||
|
||||
Reference in New Issue
Block a user