Merge pull request #3234 from dataease/pr@dev@fix_assist

fix(视图): 修复没有指标时编辑辅助线报错
This commit is contained in:
xuwei-fit2cloud 2022-09-28 15:04:27 +08:00 committed by GitHub
commit d9f9207f15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,7 +124,7 @@ export default {
addLine() {
const obj = { ...this.lineObj,
curField: this.quotaData ? this.quotaData[0] : null,
fieldId: this.quotaData ? this.quotaData[0].id : null
fieldId: this.quotaData ? this.quotaData[0]?.id : null
}
this.lineArr.push(JSON.parse(JSON.stringify(obj)))
this.changeAssistLine()