feat: 重构 AppMenu 组件以动态生成菜单项,更新路由和样式,添加返回按钮
This commit is contained in:
@ -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>
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user