<template>
|
<div class=" chuany-font14 chuany-marginbottom-20 chuany-flex chuany-justify-start chuany-align-center">
|
<span>当前位置:</span>
|
<el-breadcrumb :separator-icon="ArrowRight">
|
<el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
|
<el-breadcrumb-item v-for="(item,index) in props.list" :key="index" :to="{ path: item.path }" v-show="item.path!='/'">{{item.name}}</el-breadcrumb-item>
|
|
</el-breadcrumb>
|
</div>
|
</template>
|
|
|
<script setup>
|
import { ArrowRight } from '@element-plus/icons-vue'
|
const { $route, $message, $meth } = getCurrentInstance().appContext.config.globalProperties
|
import $store from "@/store/index.js";
|
import { logout } from '@/api/login.js';
|
|
const props = defineProps({
|
list: {
|
type:Array,
|
},
|
|
})
|
const emit = defineEmits(["click"])
|
const currentchange=(el)=>{
|
emit("click", el)
|
}
|
|
</script>
|