feat: RouterStack
Some checks failed
CI / cache-and-install (push) Failing after 1m1s

This commit is contained in:
严浩
2024-08-08 15:13:35 +08:00
parent 5c11b15c1b
commit 2798254dab
18 changed files with 272 additions and 308 deletions

View File

@ -1,12 +1,13 @@
<script setup lang="ts">
import TheWelcome from '../components/TheWelcome.vue'
definePage({
alias: '/',
alias: '/'
})
</script>
<template>
<main>
<TheWelcome />
</main>
<div class="flex gap-2">
<t-button @click="$router.push({ name: 'Page1' })">ToPage1</t-button>
<t-button @click="$router.push({ name: 'Page2' })">ToPage2</t-button>
<t-button @click="$router.push({ name: 'Page3' })">ToPage3</t-button>
</div>
</template>