- Codice internazionale numero + Country

This commit is contained in:
paoloar77
2021-12-21 01:26:29 +01:00
parent 3c194f06a5
commit eaed1e0813
21 changed files with 326 additions and 372 deletions

View File

@@ -6,7 +6,7 @@ import {
IDataToSet,
IGlobalState,
IListRoutes,
IMyPage,
IMyPage, IParamsPickup,
IParamsQuery,
ISettings,
StateConnection,
@@ -232,7 +232,9 @@ export const useGlobalStore = defineStore('GlobalStore', {
return state.sectors
else if (table === 'cities')
return state.cities
else return ris
else {
return ris
}
return ris
},
@@ -720,6 +722,22 @@ export const useGlobalStore = defineStore('GlobalStore', {
})
},
async loadPickup(params: IParamsPickup) {
console.log('loadPickup', params)
const userStore = useUserStore()
return Api.SendReq('/pickup', 'POST', params)
.then((res) => {
// console.table(res)
return res.data
})
.catch((error) => {
console.log('error loadPickup', error)
userStore.setErrorCatch(error)
return null
})
},
async loadPage(path: string) {
const userStore = useUserStore()