nexttick=>settimeout

This commit is contained in:
刘旋 2023-04-21 10:02:40 +08:00
parent ad649a1252
commit 1d132e13bf
1 changed files with 5 additions and 5 deletions

View File

@ -172,7 +172,7 @@ const handleClick = (tab, event) => {
state.selectName = tab.props.name;
getTableData();
};
let controller=true
const MapPage = defineAsyncComponent({
loader:() =>import('/@/components/Map.vue'),
delay: 200,
@ -226,10 +226,11 @@ const onHandleSizeChange = (val) => {
getTableData();
};
const onOpenEditRole = (type, row) => {
//
state.edit = JSON.parse(JSON.stringify(row));
state.dialogVisible = true;
nextTick(() => {
setTimeout(() => {
state.radio = "1"
// mapRef.value.mapOperations.removeAll()
//
@ -243,8 +244,7 @@ const onOpenEditRole = (type, row) => {
// mapRef.value.mapOperations.addInteractMarker(res.latlng.lat, res.latlng.lng)
// })
mapEvents('1')
});
},100);
};
const mapEvents = (ev)=>{
if(ev == '1'){