메인 연결 페이지의 탭 종료와 복귀 동작 통일
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { usePageExit } from '../composables/usePageExit';
|
||||
|
||||
import { computed, ref, watch } from 'vue';
|
||||
import { useRoute, useRouter } from 'vue-router';
|
||||
import { formatReservedCommandBrief } from '../components/command/reservedCommandBrief';
|
||||
@@ -9,6 +11,8 @@ import { resolveGeneralIconUrl, useDefaultGeneralIcon } from '../utils/generalIc
|
||||
import { legacyNationTextColor } from '../utils/legacyNationColor';
|
||||
import { trpc } from '../utils/trpc';
|
||||
|
||||
const { pageExitLabel, exitPage } = usePageExit();
|
||||
|
||||
type Result = Awaited<ReturnType<typeof trpc.world.getCurrentCity.query>>;
|
||||
type General = Result['generals'][number];
|
||||
type ReservedCommand = General['turns'][number];
|
||||
@@ -95,9 +99,9 @@ const commandBrief = (command: ReservedCommand): string =>
|
||||
도 시 정 보<br /><button
|
||||
class="legacy-button legacy-button--navigation back-link"
|
||||
type="button"
|
||||
@click="router.push('/')"
|
||||
@click="exitPage"
|
||||
>
|
||||
돌아가기
|
||||
{{ pageExitLabel }}
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -313,9 +317,9 @@ const commandBrief = (command: ReservedCommand): string =>
|
||||
<button
|
||||
class="legacy-button legacy-button--navigation back-link"
|
||||
type="button"
|
||||
@click="router.push('/')"
|
||||
@click="exitPage"
|
||||
>
|
||||
돌아가기
|
||||
{{ pageExitLabel }}
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user