feat(WIP): processing 물자원조

- nations, nationList를 nationList로 통합
This commit is contained in:
Hide_D committed 2021-12-22 01:01:06 +09:00
1 parent 77b78d05ac
commit cde55ab574
9 files changed
+280 -94

No files matched your search

@@ -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,