- 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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user