mirror of
https://github.com/chansee97/nova-admin.git
synced 2025-04-06 03:57:54 +08:00
23 lines
526 B
Vue
23 lines
526 B
Vue
<template>
|
|
<n-breadcrumb class="px-4">
|
|
<n-breadcrumb-item v-for="(item, index) in routes" :key="index">
|
|
<e-icon :icon="item.meta.icon" />
|
|
{{ item.meta.title }}
|
|
</n-breadcrumb-item>
|
|
</n-breadcrumb>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { computed } from 'vue';
|
|
import { useRouter } from 'vue-router';
|
|
|
|
const router = useRouter();
|
|
const routes = computed(() => {
|
|
return router.currentRoute.value.matched.filter((item) => {
|
|
return item.meta.title;
|
|
});
|
|
});
|
|
</script>
|
|
|
|
<style scoped></style>
|