Modifiche prima di Luglio...

This commit is contained in:
Surya Paolo
2023-08-27 23:56:18 +02:00
parent 800df74f3f
commit f88b753f26
15 changed files with 62 additions and 27 deletions

View File

@@ -116,10 +116,27 @@ export default defineComponent({
return userStore.my.username
}
function getRegulation(reg: string) {
let strreg = reg + ''
if (!reg) {
let name = ''
if (circuit.value!.hasOwnProperty('name')) {
// @ts-ignore
name = circuit.value!.name
}
const mystringa = t('circuit.regolamento', {nomecircuito: name})
return mystringa
} else {
return reg
}
}
onMounted(mounted)
return {
circuit,
getRegulation,
costanti,
getImgCircuit,
naviga,