修复:增加非空校验

This commit is contained in:
fan 2019-12-23 09:31:04 +08:00
parent 32d188cdfc
commit 35dceb2950
2 changed files with 2 additions and 2 deletions

View File

@ -377,7 +377,7 @@ export default {
this.overlapType = '';
},
changeSectionSelected(list, flag, type) {
list.forEach((item) => {
list && list.forEach((item) => {
const section = this.$store.getters['map/getDeviceByCode'](item);
if (section.logicSectionCodeList && section.logicSectionCodeList.length) {
section.logicSectionCodeList.forEach( (logicSectionCode) => {

View File

@ -482,7 +482,7 @@ export default {
this.$refs['protect'].routeSectionListFocus(flag);
},
changeSectionSelected(list, flag, type) {
list.forEach((item) => {
list && list.forEach((item) => {
const section = this.$store.getters['map/getDeviceByCode'](item);
if (section.logicSectionCodeList && section.logicSectionCodeList.length) {
section.logicSectionCodeList.forEach( (logicSectionCode) => {