- fix scelta provincia (il bottone Avanti non veniva disabilitato).

- Se non scelgo la provincia, non deve farmi vedere la App...
This commit is contained in:
Surya Paolo
2024-03-28 20:26:21 +01:00
parent 6856c4cc8e
commit aa29a7fa46
80 changed files with 10777451 additions and 178 deletions

View File

@@ -2069,5 +2069,17 @@ export const useGlobalStore = defineStore('GlobalStore', {
tools.setCookie('EDITPAGES', edit ? '-1' : '0')
},
getGeoJsonByProvince(prov: string) {
const usertosend = {
prov,
}
// console.log(usertosend)
return Api.SendReq('/city/geojson', 'POST', usertosend)
.then((res) => {
return res.data ? res.data.ris : []
})
},
},
})