File tree Expand file tree Collapse file tree 2 files changed +13
-17
lines changed Expand file tree Collapse file tree 2 files changed +13
-17
lines changed Original file line number Diff line number Diff line change 11<template >
22 <div >
3- <!--
4- <font-awesome-icon :icon="['far', 'bell']" />
5- <font-awesome-icon :icon="['fas', 'dharmachakra']" size='2x' />
6- <font-awesome-icon :icon="['fab', 'ubuntu']" />
7- <font-awesome-icon :icon="['fab', 'ubuntu']" size="lg" />
8- <font-awesome-icon :icon="['fab', 'ubuntu']" size="2x" />
9- <font-awesome-icon :icon="['fab', 'centos']" size="4x" />
10- <font-awesome-icon icon="coffee" />
11- -->
12-
13- <a-breadcrumb class =" breadcrumb" >
3+ <a-breadcrumb class =" breadcrumb" v-if =" device !== 'desktop'" >
144 <a-breadcrumb-item v-for =" (item, index) in breadList" :key =" index" >
155 <router-link
166 v-if =" item.name"
@@ -243,6 +233,7 @@ import ChartCard from '@/components/chart/ChartCard'
243233import DataView from ' @/components/widgets/DataView'
244234import InstanceView from ' @/components/widgets/InstanceView'
245235import Status from ' @/components/widgets/Status'
236+ import { mixinDevice } from ' @/utils/mixin.js'
246237
247238export default {
248239 name: ' Resource' ,
@@ -252,6 +243,7 @@ export default {
252243 InstanceView,
253244 Status
254245 },
246+ mixins: [mixinDevice],
255247 data () {
256248 return {
257249 apiName: ' ' ,
Original file line number Diff line number Diff line change 1212 :type =" collapsed ? 'menu-unfold' : 'menu-fold'"
1313 @click =" toggle" />
1414
15- <!--
16- <a-breadcrumb class="breadcrumb" v-if="device !== 'mobile'">
15+ <a-breadcrumb class =" breadcrumb" v-if =" device === 'desktop'" >
1716 <a-breadcrumb-item v-for =" (item, index) in breadList" :key =" index" >
1817 <router-link
1918 v-if =" item.name"
2019 :to =" { path: item.path === '' ? '/' : item.path }"
2120 >
2221 <a-icon v-if =" index == 0" :type =" item.meta.icon" />
23- {{ item.meta.title }}
22+ {{ $t( item.meta.title) }}
2423 </router-link >
25- <span v-else-if="$route.params.id">{{ $route.params.id }}</span>
26- <span v-else>{{ item.meta.title }}</span>
24+ <span v-else-if =" $route.params.id" >
25+ {{ $route.params.id }}
26+ <a-button shape =" circle" type =" dashed" size =" small" v-clipboard:copy =" $route.params.id" >
27+ <a-icon type =" copy" style =" margin-left : 0px " />
28+ </a-button >
29+ </span >
30+ <span v-else >{{ $t(tem.meta.title) }}</span >
2731 </a-breadcrumb-item >
2832 </a-breadcrumb >
29- -->
33+
3034 <user-menu ></user-menu >
3135 </div >
3236 <div v-else :class =" ['top-nav-header-index', theme]" >
You can’t perform that action at this time.
0 commit comments