feat: add reserved command argument forms
This commit is contained in:
@@ -375,7 +375,7 @@ export const useMainDashboardStore = defineStore('mainDashboard', () => {
|
||||
}
|
||||
};
|
||||
|
||||
const setGeneralTurn = async (turnIndex: number, action: string) => {
|
||||
const setGeneralTurn = async (turnIndex: number, action: string, args: Record<string, unknown> = {}) => {
|
||||
const id = generalId.value;
|
||||
if (!id) {
|
||||
return;
|
||||
@@ -385,7 +385,7 @@ export const useMainDashboardStore = defineStore('mainDashboard', () => {
|
||||
generalId: id,
|
||||
turnIndex,
|
||||
action,
|
||||
args: {},
|
||||
args,
|
||||
});
|
||||
reservedGeneralTurns.value = result.turns;
|
||||
} catch (err) {
|
||||
@@ -409,7 +409,7 @@ export const useMainDashboardStore = defineStore('mainDashboard', () => {
|
||||
}
|
||||
};
|
||||
|
||||
const setNationTurn = async (turnIndex: number, action: string) => {
|
||||
const setNationTurn = async (turnIndex: number, action: string, args: Record<string, unknown> = {}) => {
|
||||
const id = generalId.value;
|
||||
const currentGeneral = general.value;
|
||||
if (!id || !currentGeneral) {
|
||||
@@ -423,7 +423,7 @@ export const useMainDashboardStore = defineStore('mainDashboard', () => {
|
||||
generalId: id,
|
||||
turnIndex,
|
||||
action,
|
||||
args: {},
|
||||
args,
|
||||
});
|
||||
reservedNationTurns.value = result.turns;
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user