investment page/curency switcher

This commit is contained in:
2025-06-05 15:53:41 +02:00
parent a7c4ff51ca
commit c7d71ddb21
17 changed files with 515 additions and 156 deletions

View File

@ -258,11 +258,11 @@ import { onMounted } from "vue";
import type { CountryList } from "~/types";
const mapStore = useMapStore();
const menuStore = useMenuStore();
const color = useColorMode();
onMounted(async () => {
// await mapStore.getCountList();
await mapStore.getCountries();
// await mapStore.getCountList()
const map = document.getElementById("europe_map");
if (!map) return;
@ -304,7 +304,7 @@ onMounted(async () => {
element.classList.forEach((className) => {
let cl = className.split("_");
if (cl.length == 3 && cl[2]) {
let cc = mapStore.countries?.find(
let cc = menuStore.countryList?.find(
(x: CountryList) => x.iso_code == cl[2].toLowerCase()
);
if (cc) {