Table MySkills

This commit is contained in:
Paolo Arena
2021-10-08 00:38:22 +02:00
parent eb4156fc89
commit 48128235f8
22 changed files with 1250 additions and 1184 deletions

View File

@@ -134,7 +134,7 @@ export const toolsext = {
// this.$q.lang.set(mylang)
},
getValDb(keystr: string, serv: boolean, def?: any, table?: string, subkey?: string, id?: any, idmain?: any): any | undefined {
getValDb(keystr: string, serv: boolean, def?: any, table?: string, subkey?: string, id?: any, idmain?: any, indrec?: number, subsubkey?: string): any | undefined {
const todos = useTodoStore()
const userStore = useUserStore()
@@ -143,8 +143,13 @@ export const toolsext = {
if (keystr === 'profile') {
if (subkey) {
// console.log('userStore.my.profile', userStore.my.profile, 'subkey', subkey, )
// @ts-ignore
return userStore.my.profile[subkey]
if (subsubkey && indrec) {
// @ts-ignore
return userStore.my.profile[subkey][indrec][subsubkey]
} else {
// @ts-ignore
return userStore.my.profile[subkey]
}
}
} else if (keystr) { // @ts-ignore
// @ts-ignore