investment page/curency switcher
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user