12345678910111213141516171819202122232425 |
- <template>
- <el-breadcrumb
- v-if="currentPaths.length > 0"
- separator-class="el-icon-arrow-right"
- style="border-bottom: 1px solid #aaa; padding-bottom: 5px;"
- >
- <el-breadcrumb-item :to="{ path: '/home/overview' }"
- >首页</el-breadcrumb-item
- >
- <el-breadcrumb-item v-for="item in currentPaths" :key="item">
- {{ item }}
- </el-breadcrumb-item>
- </el-breadcrumb>
- </template>
- <script>
- import { mapState } from "vuex";
- export default {
- name: "LinkTitles",
- computed: {
- ...mapState(["currentPaths"])
- }
- };
- </script>
|