|
@@ -405,16 +405,15 @@ export default {
|
|
|
},
|
|
|
watch: {
|
|
|
cockpit_vector(newVal, oldVal) {
|
|
|
- console.log('newVal: ', newVal);
|
|
|
this.title = newVal.title
|
|
|
this.word = newVal.word
|
|
|
- if (newVal.tableData.length > 0) {
|
|
|
+ if (newVal.tableData && newVal.tableData.length > 0) {
|
|
|
|
|
|
this.active_dableData = newVal.tableData
|
|
|
this.tableData = newVal.tableData
|
|
|
this.init_vector()
|
|
|
|
|
|
- } else {
|
|
|
+ } else if(this.title){
|
|
|
this.init_vector()
|
|
|
}
|
|
|
if (newVal.goitem) {
|
|
@@ -433,7 +432,7 @@ export default {
|
|
|
viewer.dataSources.add(BoxCommonVector_entity);
|
|
|
|
|
|
});
|
|
|
- }
|
|
|
+ },
|
|
|
|
|
|
};
|
|
|
</script>
|