mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-12 12:50:48 +00:00
improve: 优化layout
This commit is contained in:
parent
d3bf3d2b40
commit
d7d7b2c914
@ -6,7 +6,7 @@
|
||||
:class="getThemeConfig.isCollapse ? 'el-icon-s-unfold' : 'el-icon-s-fold'"
|
||||
@click="onThemeConfigChange"
|
||||
></i>
|
||||
<el-breadcrumb class="layout-navbars-breadcrumb-hide" :style="{ display: isShowBreadcrumb }">
|
||||
<el-breadcrumb class="layout-navbars-breadcrumb-hide" v-if="isShowcrumb" :style="{ display: isShowBreadcrumb }">
|
||||
<transition-group name="breadcrumb" mode="out-in">
|
||||
<el-breadcrumb-item v-for="(v, k) in [...breadCrumbList, ...crumbPast]" :key="v.path">
|
||||
<span v-if="k == 1" class="layout-navbars-breadcrumb-span">
|
||||
@ -88,6 +88,14 @@ export default {
|
||||
return isBreadcrumb ? '' : 'none';
|
||||
}
|
||||
},
|
||||
isShowcrumb() {
|
||||
const { layout } = this.$store.state.themeConfig.themeConfig;
|
||||
if (layout === 'transverse' || layout === 'classic') {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.initRouteSplit(this.$route.path);
|
||||
|
||||
@ -126,7 +126,7 @@ export default {
|
||||
this.tagsRefsIndex = k;
|
||||
try {
|
||||
if (v.name == 'home_index') {
|
||||
this.$router.replace(`${setting.routePre}/home/`);
|
||||
this.$router.replace(`${setting.routePre}/home_page`);
|
||||
} else {
|
||||
this.$router.push(v);
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ export default {
|
||||
component: LayoutMain,
|
||||
children: [
|
||||
{
|
||||
path: routePre + '/home/',
|
||||
path: routePre + '/home_page',
|
||||
name: `${pre}index`,
|
||||
header: 'home',
|
||||
meta: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user