Browse Source

绘制干管bug修复

zhaoyk 3 năm trước cách đây
mục cha
commit
4948b88f60
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      adm_comp/src/views/DiagramTemplate.vue

+ 1 - 1
adm_comp/src/views/DiagramTemplate.vue

@@ -982,7 +982,7 @@
 
 			const params:any = {lines: lines, templateId: this.currentTemplate.id};
 			const sel = this.editor.getSelComp();
-			if(sel.compType == 'mainPipe')
+			if(sel && sel.compType == 'mainPipe')
 				params.currentCompId = sel.id;
 			this.callAction('drawMainPipe', params);
 		}