fix: 数据不存在导致的异常
This commit is contained in:
parent
8de14c676c
commit
2b510ea460
|
@ -68,7 +68,7 @@ export default {
|
||||||
if (result) {
|
if (result) {
|
||||||
const keys = ['sample', 'gasBg', 'detBg', 'qc']
|
const keys = ['sample', 'gasBg', 'detBg', 'qc']
|
||||||
keys.forEach((key) => {
|
keys.forEach((key) => {
|
||||||
result[key] = result[key].join('\n')
|
result[key] = result[key] ? result[key].join('\n') : ''
|
||||||
})
|
})
|
||||||
this.content = result
|
this.content = result
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user