feat: 重构 AppMenu 组件以动态生成菜单项,更新路由和样式,添加返回按钮
Some checks failed
/ build-and-deploy-to-vercel (push) Successful in 1m33s
/ playwright (push) Failing after 2m43s
/ depcheck (push) Successful in 1m35s

This commit is contained in:
严浩
2024-12-25 19:19:21 +08:00
parent 78fe5b0c37
commit eed0f4f3f4
7 changed files with 51 additions and 6 deletions

View File

@ -1,7 +1,8 @@
<template>
<main flex-1 class="flex flex-col items-center justify-center h-full">
<main flex-1 class="flex flex-col items-center justify-center h-full space-y-4">
<h1>Not Found</h1>
<p>{{ path }} does not exist.</p>
<Button @click="$router.back()">Back</Button>
</main>
</template>
<script lang="ts" setup>

View File

@ -1,10 +1,12 @@
<script setup lang="ts">
const VITE_BUILD_COMMIT = import.meta.env.VITE_BUILD_COMMIT;
import { routes } from 'vue-router/auto-routes';
</script>
<template>
<div>
<div>index.page.vue</div>
<div rounded-4 px-4 py-2 bg-black text-white>commit: {{ VITE_BUILD_COMMIT }}</div>
<pre>{{ routes }}</pre>
</div>
</template>