From 800106f9cb325ddb518bef5883bf8778abe4a969 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Thu, 14 Jul 2022 11:40:30 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=93=B1=EC=9A=A9=20=EB=B2=84=EA=B7=B8?= =?UTF-8?q?=20=EC=88=98=EC=A0=95=20=EC=8B=9C=EB=8F=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/ts/processing/General/che_등용.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/hwe/ts/processing/General/che_등용.vue b/hwe/ts/processing/General/che_등용.vue index 92f358c7..50971c54 100644 --- a/hwe/ts/processing/General/che_등용.vue +++ b/hwe/ts/processing/General/che_등용.vue @@ -50,6 +50,7 @@ import { getProcSearchable, type procGeneralItem, type procGeneralKey, + type procGeneralList, type procGeneralRawItemList, type procNationItem, type procNationList, @@ -58,9 +59,8 @@ import { getNpcColor } from "@/common_legacy"; const commandName = staticValues.commandName; const searchable = getProcSearchable(); -const generalList = ref(convertGeneralList(procRes.generalsKey, procRes.generals)); - -const selectedGeneralID = ref(generalList.value[0].no); +const generalList = ref([]); +const selectedGeneralID = ref(0); function textHelpGeneral(gen: procGeneralItem): string { const nameColor = getNpcColor(gen.npc); @@ -80,6 +80,9 @@ async function submit(e: Event) { const nationList = ref(new Map()); onMounted(() => { + generalList.value = convertGeneralList(procRes.generalsKey, procRes.generals); + selectedGeneralID.value = generalList.value[0].no; + nationList.value.clear(); for (const nationItem of procRes.nationList) { nationList.value.set(nationItem.id, nationItem); }