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); }