CN-588 实体列表、detection列表页取消高度限制,去掉滚动条

This commit is contained in:
hyx
2022-06-09 21:55:28 +08:00
parent 3335345165
commit 08ee1968e9
9 changed files with 98 additions and 34 deletions

View File

@@ -1,10 +1,12 @@
<template>
<div class="cn-container">
<div class="cn-container" :style="entityDetectionStyle" id="cnContainer">
<router-view :key="routerKey"/>
</div>
</template>
<script>
import { listScrollPath } from '@/utils/constants'
export default {
name: 'Container',
data () {
@@ -14,6 +16,14 @@ export default {
computed: {
routerKey () {
return this.$route.name !== undefined ? this.$route.name + +new Date() : this.$route + +new Date()
},
entityDetectionStyle () {
let route = this.$route.name !== undefined ? this.$route.name : this.$route
if(listScrollPath.indexOf(route.path)>-1){
return "overflow:auto;"
}else {
return ""
}
}
}
}