Files
xiaomai 1fedf7094c refactor(admin): simplify entry route to point to dashboard
The `/admin` route now directly serves the dashboard page by adding an alias, removing the need for a separate login page at that path.

- Deletes `pages/admin/index.vue` and the `admin-login` layout.
- Aliases `/admin` to `/admin/dashboard` for a more direct entry point.
- Improves the default layout with a sticky footer.
- Updates VSCode settings for better Tailwind CSS IntelliSense.
2025-10-09 09:22:21 +08:00

29 lines
533 B
Vue

<template>
<UDashboardPanel>
<template #header>
<UDashboardNavbar :title="pageTitle" toggle>
<template #leading>
<UDashboardSidebarCollapse />
</template>
</UDashboardNavbar>
</template>
<template #body>
This is home page
</template>
</UDashboardPanel>
</template>
<script lang="ts" setup>
const pageTitle = "仪表盘"
definePageMeta({
layout: "admin-dashboard",
title: pageTitle,
alias: ['/admin']
})
useHead({
title: pageTitle
})
</script>
<style></style>