- risolto problema della non attesa della PWA durante la chiamata a Node.js.

- risolto problema dell'ambiente in Locale HTTPS certificato installato aggiornato.
This commit is contained in:
Surya Paolo
2025-03-13 12:05:10 +01:00
parent 09d738f4e9
commit 404194b873
14 changed files with 379 additions and 573 deletions

View File

@@ -1739,8 +1739,14 @@ export const useGlobalStore = defineStore('GlobalStore', {
// calendarStore.editable = false
return Api.SendReq(`/loadsite/${myuserid}/${tools.getEnv('VITE_APP_ID')}/${import.meta.env.VITE_APP_VERSION}`, 'GET', null)
.then((res) => {
try {
console.log('CHIAMA testpao...')
const restest = await Api.SendReq(`/testpao/`, 'GET', null)
console.log(' RISULTATO = ', restest)
const res = await Api.SendReq(`/loadsite/${myuserid}/${tools.getEnv('VITE_APP_ID')}/${import.meta.env.VITE_APP_VERSION}`, 'GET', null)
if (res.status === 200) {
console.log('____________________________ res', res)
this.serverError = false
if (res.status === 200) {
@@ -1874,16 +1880,18 @@ export const useGlobalStore = defineStore('GlobalStore', {
}
return true
}).then((res) => res).catch((error) => {
if (error.status === serv_constants.RIS_CODE__HTTP_FORBIDDEN_TOKEN_EXPIRED) {
} else {
}
} catch (error) {
if (error.status === serv_constants.RIS_CODE__HTTP_FORBIDDEN_TOKEN_EXPIRED) {
}
console.log('error dbLoad', error)
// userStore.setErrorCatch(error)
this.serverError = true
this.serverMsgError = error
return new Types.AxiosError(serv_constants.RIS_CODE_ERR, null, toolsext.ERR_GENERICO, error)
})
}
console.log('error dbLoad', error)
// userStore.setErrorCatch(error)
this.serverError = true
this.serverMsgError = error
return new Types.AxiosError(serv_constants.RIS_CODE_ERR, null, toolsext.ERR_GENERICO, error)
}
},
getProvinceByProv(provstr: string) {