메인 연결 페이지의 탭 종료와 복귀 동작 통일

This commit is contained in:
2026-09-14 23:49:30 +00:00
parent 62f4ca3058
commit 854a91c397
45 changed files with 720 additions and 237 deletions
@@ -1,6 +1,7 @@
<script setup lang="ts">
import { usePageExit } from '../composables/usePageExit';
import { computed, nextTick, onMounted, ref, watch } from 'vue';
import { useRouter } from 'vue-router';
import { JosaUtil } from '@sammo-ts/common/util/JosaUtil';
@@ -13,6 +14,8 @@ import { trpc } from '../utils/trpc';
import { cityLevelMap, formatOfficerLevelText, getNationChiefLevel, regionMap } from '../utils/nationFormat';
import { legacyNationTextColor } from '../utils/legacyNationColor';
const { pageExitLabel, exitPage } = usePageExit();
type PersonnelResponse = Awaited<ReturnType<typeof trpc.nation.getPersonnelInfo.query>>;
type GeneralEntry = PersonnelResponse['generals'][number];
type OfficerLevel = 2 | 3 | 4;
@@ -41,7 +44,6 @@ const selectionContext = ref<SelectionContext | null>(null);
const kickTargetId = ref(0);
const ambassadorSelection = ref<number[]>([]);
const auditorSelection = ref<number[]>([]);
const router = useRouter();
const { success: showSuccessToast, error: showErrorToast, confirm: showConfirm } = useGameFeedback();
const resolveErrorMessage = (value: unknown): string =>
@@ -311,9 +313,9 @@ onMounted(() => void loadPersonnel());
<br /><button
class="legacy-button legacy-button--navigation"
type="button"
@click="router.push('/')"
@click="exitPage"
>
돌아가기
{{ pageExitLabel }}
</button>
</td>
</tr>
@@ -569,12 +571,8 @@ onMounted(() => void loadPersonnel());
<tbody>
<tr>
<td>
<button
class="legacy-button legacy-button--navigation"
type="button"
@click="router.push('/')"
>
돌아가기
<button class="legacy-button legacy-button--navigation" type="button" @click="exitPage">
{{ pageExitLabel }}
</button>
</td>
</tr>