diff --git a/hwe/ts/PageNationGeneral.vue b/hwe/ts/PageNationGeneral.vue index 9c8b1d02..e243616e 100644 --- a/hwe/ts/PageNationGeneral.vue +++ b/hwe/ts/PageNationGeneral.vue @@ -1,12 +1,7 @@ @@ -22,16 +17,30 @@ import TopBackBar from "@/components/TopBackBar.vue"; import BottomBar from "@/components/BottomBar.vue"; import { BContainer } from "bootstrap-vue-3"; -import { onMounted, ref } from "vue"; +import { onMounted, provide, ref } from "vue"; import { SammoAPI } from "./SammoAPI"; import { merge2DArrToObjectArr } from "./util/merge2DArrToObjectArr"; import type { GeneralListItem } from "./defs/API/Nation"; import GeneralList from "./components/GeneralList.vue"; +import { type GameConstStore, getGameConstStore } from "./GameConstStore"; const generalList = ref([]); +const gameConstStore = ref(); +provide('gameConstStore', gameConstStore); + +const asyncReady = ref(false); + const title = "세력 장수"; +const storeP = getGameConstStore().then((store)=>{ + gameConstStore.value = store; +}); + +void Promise.all([storeP]).then(()=>{ + asyncReady.value = true; +}); + onMounted(async () => { try { const { column, list, permission } = await SammoAPI.Nation.GeneralList(); diff --git a/hwe/ts/components/GeneralList.vue b/hwe/ts/components/GeneralList.vue index 470153ff..e455b3ba 100644 --- a/hwe/ts/components/GeneralList.vue +++ b/hwe/ts/components/GeneralList.vue @@ -21,7 +21,7 @@