fix: 사령부에서 최근 턴 저장 안되는 버그 수정
This commit is contained in:
@@ -125,12 +125,6 @@ import { SammoAPI } from "./SammoAPI";
|
|||||||
import { unwrap } from "@/util/unwrap";
|
import { unwrap } from "@/util/unwrap";
|
||||||
import { StoredActionsHelper } from "./util/StoredActionsHelper";
|
import { StoredActionsHelper } from "./util/StoredActionsHelper";
|
||||||
|
|
||||||
const {
|
|
||||||
serverNick,
|
|
||||||
mapName,
|
|
||||||
unitSet,
|
|
||||||
} = staticValues;
|
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
maxChiefTurn: VueTypes.number.isRequired,
|
maxChiefTurn: VueTypes.number.isRequired,
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -300,7 +300,7 @@ import VueTypes from "vue-types";
|
|||||||
import DragSelect from "@/components/DragSelect.vue";
|
import DragSelect from "@/components/DragSelect.vue";
|
||||||
import { isString, range, trim } from "lodash";
|
import { isString, range, trim } from "lodash";
|
||||||
import { SammoAPI } from "@/SammoAPI";
|
import { SammoAPI } from "@/SammoAPI";
|
||||||
import type { ChiefResponse, CommandItem, TurnObj } from "@/defs";
|
import type { ChiefResponse, CommandItem, ReserveCommandResponse, TurnObj } from "@/defs";
|
||||||
import { QueryActionHelper } from "@/util/QueryActionHelper";
|
import { QueryActionHelper } from "@/util/QueryActionHelper";
|
||||||
import type { Args } from "@/processing/args";
|
import type { Args } from "@/processing/args";
|
||||||
import type { StoredActionsHelper } from "@/util/StoredActionsHelper";
|
import type { StoredActionsHelper } from "@/util/StoredActionsHelper";
|
||||||
@@ -584,11 +584,17 @@ async function reserveCommand() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await SammoAPI.NationCommand.ReserveCommand({
|
const result = await SammoAPI.NationCommand.ReserveCommand<ReserveCommandResponse>({
|
||||||
turnList: reqTurnList,
|
turnList: reqTurnList,
|
||||||
action: commandName,
|
action: commandName,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
storedActionsHelper.pushRecentActions({
|
||||||
|
action: commandName,
|
||||||
|
brief: result.brief,
|
||||||
|
arg: {}
|
||||||
|
});
|
||||||
|
|
||||||
queryActionHelper.releaseSelectedTurnList();
|
queryActionHelper.releaseSelectedTurnList();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
|
|||||||
Reference in New Issue
Block a user