calculator and other cleaning

This commit is contained in:
2025-07-04 22:39:51 +02:00
parent a2db817133
commit 0bab1d83a1
19 changed files with 420 additions and 93 deletions

View File

@ -171,6 +171,10 @@ export const useMenuStore = defineStore('menuStore', () => {
return menuItems.value?.find(item => item.id === 15)
}
function getInvestmentCalculatorMenu() {
return menuItems.value?.find(item => item.id === 16)
}
const getFirstImage = (size: 'l' | 'm' | 's' = 'm', needbaseurl: boolean) => {
const req = useRequestEvent()
const url = useRequestURL()
@ -273,7 +277,7 @@ export const useMenuStore = defineStore('menuStore', () => {
async () => {
await getLocales()
await loadMenu()
await store.getMinValue()
await store.getMinMaxRange()
await store.getCalculator()
},
{ deep: true },
@ -309,5 +313,6 @@ export const useMenuStore = defineStore('menuStore', () => {
getContactMenu,
getShopMenu,
getRegistrationMenu,
getInvestmentCalculatorMenu,
}
})