feat(WIP): processing 물자원조

- nations, nationList를 nationList로 통합
This commit is contained in:
2021-12-22 01:01:06 +09:00
parent f951f313d2
commit 95f079474e
9 changed files with 280 additions and 94 deletions
@@ -97,9 +97,9 @@ export default defineComponent({
return name;
}
const nations = new Map<number, procNationItem>();
const nationList = new Map<number, procNationItem>();
for (const nationItem of procRes.nationList) {
nations.set(nationItem.id, nationItem);
nationList.set(nationItem.id, nationItem);
}
async function submit(e: Event) {
@@ -111,16 +111,10 @@ export default defineComponent({
unwrap(e.target).dispatchEvent(event);
}
const nationList = new Map<number, procNationItem>();
for (const nationItem of procRes.nationList) {
nationList.set(nationItem.id, nationItem);
}
return {
nations: ref(nations),
nationList: ref(nationList),
selectedGeneralID,
generalList,
nationList,
commandName,
isBrightColor,
textHelpGeneral,