feat(WIP): processing, 출병 추가

- 장수 선택기 추가
- v-model 안 쓰는 바보짓 수정
- proc 전역 변수를 procRes로 묶음
This commit is contained in:
2021-12-18 16:00:53 +09:00
parent 3ef5c2aa6d
commit 03993052a3
16 changed files with 407 additions and 88 deletions
+6 -1
View File
@@ -79,13 +79,15 @@ const app: App<Element> | undefined = (function () {
const moduleName = entryInfo[1];
if (!(moduleName in GeneralActions)) {
console.error(`${moduleName}${groupName}에 없음`);
return undefined;
}
return createApp(GeneralActions[moduleName]);
}
if (groupName == 'Nation') {
const moduleName = entryInfo[1];
if (!(moduleName in GeneralActions)) {
if (!(moduleName in NationActions)) {
console.error(`${moduleName}${groupName}에 없음`);
return undefined;
}
return createApp(NationActions[moduleName]);
}
@@ -95,6 +97,9 @@ const app: App<Element> | undefined = (function () {
}());
if (app === undefined) {
const div = document.createElement('div');
div.innerHTML = `모듈의 view가 없습니다. ${JSON.stringify(entryInfo)}`;
document.body.appendChild(div);
console.error(`모듈이 지정되지 않음`, entryInfo);
}
else {