|
|
|
@ -131,6 +131,11 @@ function handleSwitchCard(slug: string) { |
|
|
|
navigateTo(`/characters/${slug}`); |
|
|
|
} |
|
|
|
|
|
|
|
function handleDetailStart(slug: string) { |
|
|
|
detailShow.value = false; |
|
|
|
navigateTo(`/characters/${slug}`); |
|
|
|
} |
|
|
|
|
|
|
|
function onModelSelect(e: Event) { |
|
|
|
const id = Number((e.target as HTMLSelectElement).value); |
|
|
|
if (id) handleModelChange(id); |
|
|
|
@ -305,7 +310,7 @@ onMounted(async () => { |
|
|
|
</footer> |
|
|
|
</main> |
|
|
|
|
|
|
|
<CharacterDetailModal v-model:show="detailShow" :card="cardInfo" :show-start="false" /> |
|
|
|
<CharacterDetailModal v-model:show="detailShow" :card="cardInfo" @start="handleDetailStart" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
|