新版地图绘制键盘delete删除元素代码调整
This commit is contained in:
parent
d295fb72a5
commit
6802f2621a
@ -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();
|
||||
|
@ -94,6 +94,9 @@ export default {
|
||||
},
|
||||
updateMapModel(data) {
|
||||
this.$emit('updateMapModel', data);
|
||||
},
|
||||
deleteObj() {
|
||||
this.$refs.switchModel.deleteObj();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user