通用中后台框架第一版

This commit is contained in:
BBIT-Kai
2026-04-28 16:27:16 +08:00
commit b8d25869c6
115 changed files with 15223 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
<template>
<n-breadcrumb>
<n-breadcrumb-item v-for="item in crumbs" :key="item.path">
{{ item.title }}
</n-breadcrumb-item>
</n-breadcrumb>
</template>
<script setup lang="ts">
import { computed } from 'vue'
import { useRoute } from 'vue-router'
const route = useRoute()
const crumbs = computed(() =>
route.matched
.filter((item) => item.meta?.title)
.map((item) => ({
path: item.path,
title: item.meta.title as string
}))
)
</script>