- Il circuito viene creato in automatico, quando scegli una provincia.

This commit is contained in:
Surya Paolo
2023-03-21 18:12:06 +01:00
parent de937c73f7
commit 59af1d0b8b
19 changed files with 76 additions and 112 deletions

View File

@@ -837,6 +837,19 @@ export const useUserStore = defineStore('UserStore', {
async execDbOp(paramquery: any) {
return Api.SendReq('/users/dbop', 'POST', paramquery)
.then((res) => {
return res.data
}).catch((error) => {
return false
})
},
async execDbOpUser(paramquery: any) {
return Api.SendReq('/users/dbopuser', 'POST', paramquery)
.then((res) => {
tools.updateMyData(res.data.ris)
return res.data
}).catch((error) => {
return false
@@ -850,7 +863,9 @@ export const useUserStore = defineStore('UserStore', {
value: step,
}
this.my.profile.stepTutorial = step
return await this.execDbOp({mydata})
const ris = await this.execDbOpUser({mydata})
return ris
},
async savenoNameSurname(val: boolean) {
const mydata = {
@@ -860,7 +875,7 @@ export const useUserStore = defineStore('UserStore', {
}
if (this.my.profile.noNameSurname !== val) {
this.my.profile.noNameSurname = val
return await this.execDbOp({mydata})
return await this.execDbOpUser({mydata})
}
},
async savenoFoto(val: boolean) {
@@ -871,7 +886,7 @@ export const useUserStore = defineStore('UserStore', {
}
if (this.my.profile.noFoto !== val) {
this.my.profile.noFoto = val
return await this.execDbOp({mydata})
return await this.execDbOpUser({mydata})
}
},