fix: 등용 버그 수정 시도
This commit is contained in:
@@ -50,6 +50,7 @@ import {
|
|||||||
getProcSearchable,
|
getProcSearchable,
|
||||||
type procGeneralItem,
|
type procGeneralItem,
|
||||||
type procGeneralKey,
|
type procGeneralKey,
|
||||||
|
type procGeneralList,
|
||||||
type procGeneralRawItemList,
|
type procGeneralRawItemList,
|
||||||
type procNationItem,
|
type procNationItem,
|
||||||
type procNationList,
|
type procNationList,
|
||||||
@@ -58,9 +59,8 @@ import { getNpcColor } from "@/common_legacy";
|
|||||||
|
|
||||||
const commandName = staticValues.commandName;
|
const commandName = staticValues.commandName;
|
||||||
const searchable = getProcSearchable();
|
const searchable = getProcSearchable();
|
||||||
const generalList = ref(convertGeneralList(procRes.generalsKey, procRes.generals));
|
const generalList = ref<procGeneralList>([]);
|
||||||
|
const selectedGeneralID = ref(0);
|
||||||
const selectedGeneralID = ref(generalList.value[0].no);
|
|
||||||
|
|
||||||
function textHelpGeneral(gen: procGeneralItem): string {
|
function textHelpGeneral(gen: procGeneralItem): string {
|
||||||
const nameColor = getNpcColor(gen.npc);
|
const nameColor = getNpcColor(gen.npc);
|
||||||
@@ -80,6 +80,9 @@ async function submit(e: Event) {
|
|||||||
const nationList = ref(new Map<number, procNationItem>());
|
const nationList = ref(new Map<number, procNationItem>());
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
generalList.value = convertGeneralList(procRes.generalsKey, procRes.generals);
|
||||||
|
selectedGeneralID.value = generalList.value[0].no;
|
||||||
|
nationList.value.clear();
|
||||||
for (const nationItem of procRes.nationList) {
|
for (const nationItem of procRes.nationList) {
|
||||||
nationList.value.set(nationItem.id, nationItem);
|
nationList.value.set(nationItem.id, nationItem);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user