Merge branch 'master-dev' into feature-Beta-dev-renpy
This commit is contained in:
commit
3b8c23bc96
|
@ -28,9 +28,9 @@
|
|||
</a-layout-sider>
|
||||
<a-layout style="background-color: aliceblue">
|
||||
<keep-alive>
|
||||
<router-view v-if="keepAlive" />
|
||||
<router-view />
|
||||
</keep-alive>
|
||||
<router-view v-if="!keepAlive" />
|
||||
<!-- <router-view v-if="!keepAlive" /> -->
|
||||
</a-layout>
|
||||
</a-layout>
|
||||
</a-card>
|
||||
|
@ -72,11 +72,11 @@ const SubMenu = {
|
|||
export default {
|
||||
name: 'menuTree',
|
||||
components: { 'sub-menu': SubMenu },
|
||||
computed: {
|
||||
keepAlive() {
|
||||
return this.$route.meta.keepAlive
|
||||
},
|
||||
},
|
||||
// computed: {
|
||||
// keepAlive() {
|
||||
// return this.$route.meta.keepAlive
|
||||
// },
|
||||
// },
|
||||
data() {
|
||||
const collapsed = false
|
||||
return {
|
||||
|
|
|
@ -1592,4 +1592,12 @@ export default {
|
|||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
/deep/.ant-spin-nested-loading {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
/deep/.ant-spin-container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<a-card :bordered="false" style="height: 100%;">
|
||||
<a-card :bordered="false" style="height: 100%">
|
||||
<a-layout id="components-layout-demo-custom-trigger" style="height: 100%">
|
||||
<a-layout-sider theme="light" v-model="collapsed" :trigger="null" collapsible width="350px">
|
||||
<div style="height: 100%">
|
||||
|
@ -30,9 +30,9 @@
|
|||
</a-layout-sider>
|
||||
<a-layout style="background-color: aliceblue">
|
||||
<keep-alive>
|
||||
<router-view v-if="keepAlive" />
|
||||
<router-view />
|
||||
</keep-alive>
|
||||
<router-view v-if="!keepAlive" />
|
||||
<!-- <router-view v-if="!keepAlive" /> -->
|
||||
</a-layout>
|
||||
</a-layout>
|
||||
</a-card>
|
||||
|
@ -74,11 +74,11 @@ const SubMenu = {
|
|||
export default {
|
||||
name: 'menuTree',
|
||||
components: { 'sub-menu': SubMenu },
|
||||
computed: {
|
||||
keepAlive() {
|
||||
return this.$route.meta.keepAlive
|
||||
},
|
||||
},
|
||||
// computed: {
|
||||
// keepAlive() {
|
||||
// return this.$route.meta.keepAlive
|
||||
// },
|
||||
// },
|
||||
data() {
|
||||
const collapsed = false
|
||||
return {
|
||||
|
@ -104,7 +104,6 @@ export default {
|
|||
this.menus = f.children
|
||||
}
|
||||
})
|
||||
console.log("路由信息",this.menus);
|
||||
// this.initDefaultKeys(this.menus[0])
|
||||
// 将从缓存中取出openKeys
|
||||
const openKeys = window.sessionStorage.getItem('openKeys')
|
||||
|
@ -116,8 +115,8 @@ export default {
|
|||
} else {
|
||||
this.currSlecteKey = []
|
||||
this.initDefaultKeys(this.menus[0])
|
||||
this.menus.forEach(item => {
|
||||
if (item.name!=="istatistics-data") {
|
||||
this.menus.forEach((item) => {
|
||||
if (item.name !== 'istatistics-data') {
|
||||
// this.defaultOpenKeys.push(item.path)
|
||||
this.openKeys.push(item.path)
|
||||
}
|
||||
|
@ -151,9 +150,9 @@ export default {
|
|||
// this.defaultOpenKeys.push(data.path)
|
||||
this.openKeys.push(data.path)
|
||||
// if (data.children) {
|
||||
if (data.name!=="istatistics-StateOfHealth-alerts") {
|
||||
if (data.name !== 'istatistics-StateOfHealth-alerts') {
|
||||
data.children.some((f) => {
|
||||
if (f.name!=="istatistics-met") {
|
||||
if (f.name !== 'istatistics-met') {
|
||||
if (f.children) {
|
||||
// 第一个节点展开
|
||||
// this.defaultOpenKeys.push(f.path)
|
||||
|
|
Loading…
Reference in New Issue
Block a user