You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
909 B
27 lines
909 B
<template>
|
|
<div class="sm:py-4 sm:px-0 mx-3 py-2">
|
|
<el-breadcrumb :separator-icon="ArrowRight">
|
|
<el-breadcrumb-item :to="{ path: '/' }"><el-icon><ElIconHouse /></el-icon></el-breadcrumb-item>
|
|
<el-breadcrumb-item v-if="data?.parentName" :to="{ path: data.parentStatus == 0 ? data.parentPath : ''}">{{ data.parentName }}</el-breadcrumb-item>
|
|
<el-breadcrumb-item v-if="data?.categoryName" :to="{ path: data.categoryPath }">{{ data.categoryName }}</el-breadcrumb-item>
|
|
<el-breadcrumb-item>{{ title || data?.title }}</el-breadcrumb-item>
|
|
</el-breadcrumb>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { ArrowRight } from '@element-plus/icons-vue'
|
|
import type {Navigation} from "~/api/cms/navigation/model";
|
|
|
|
const route = useRoute();
|
|
|
|
withDefaults(
|
|
defineProps<{
|
|
// 选中的角色
|
|
data?: Navigation;
|
|
title?: string;
|
|
}>(),
|
|
{}
|
|
);
|
|
|
|
</script>
|