新版地图绘制键盘delete删除元素代码调整

This commit is contained in:
joylink_cuiweidong 2020-01-13 13:48:45 +08:00
parent d295fb72a5
commit 6802f2621a
2 changed files with 6 additions and 1 deletions

View File

@ -244,7 +244,9 @@ export default {
},
watch: {
'$store.state.map.deleteCount': function (val) {
this.$refs[this.enabledTab].deleteObj();
if (this.selected) {
this.$refs[this.enabledTab].deleteObj();
}
},
'$store.state.map.updateCount': function (val) {
this.$refs[this.enabledTab].edit();

View File

@ -94,6 +94,9 @@ export default {
},
updateMapModel(data) {
this.$emit('updateMapModel', data);
},
deleteObj() {
this.$refs.switchModel.deleteObj();
}
}
};