CN-588 实体列表、detection列表页取消高度限制,去掉滚动条
This commit is contained in:
@@ -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 ""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user