This commit is contained in:
姚宇浩 2024-07-24 21:22:52 +08:00
parent a932d5f902
commit a61305a188
1 changed files with 13 additions and 10 deletions

View File

@ -204,8 +204,8 @@ const csh = () => {
cs_dd_arr.value.forEach((item, index) => {
map.removeOverlay(cs_dd_arr.value[index]);
});
jdm_arr.value = [];
jdm_number_arr.value = [];
// jdm_arr.value = [];
// jdm_number_arr.value = [];
fwq_list_arr.value = [];
cs_qk_arr.value = [];
cs_name_arr.value = [];
@ -531,8 +531,8 @@ const addPolygonCounty = () => {
cs_dd_arr.value.forEach((item, index) => {
map.removeOverlay(cs_dd_arr.value[index]);
});
jdm_arr.value = [];
jdm_number_arr.value = [];
// jdm_arr.value = [];
// jdm_number_arr.value = [];
fwq_list_arr.value = [];
cs_qk_arr.value = [];
cs_name_arr.value = [];
@ -1289,12 +1289,15 @@ const changeRs = (id) => {
// cs_name_arr.value.length = 0;
// addCs2();
// }
if (jdm_number_arr.value?.length) {
jdm_number_arr.value.forEach((item, index) => {
map.removeOverlay(jdm_number_arr.value[index]);
// if (jdm_number_arr.value?.length) {
// jdm_number_arr.value.forEach((item, index) => {
// map.removeOverlay(jdm_number_arr.value[index]);
// });
// jdm_number_arr.value.length = 0;
// }
jdm_arr.value.forEach((item, index) => {
map.removeOverlay(jdm_arr.value[index]);
});
jdm_number_arr.value.length = 0;
}
addJd2();
// removeAllPolygon("person");
// xuanran();