4
0
mirror of https://github.com/iczer/vue-antd-admin.git synced 2025-04-06 03:57:44 +08:00
iczer 255f68709e fix: solve the cache problem in multi tabs mode; 🐛
修复: 解决多页签模式下的内存泄露问题;
2020-07-10 21:48:29 +08:00

26 lines
599 B
Vue

<template>
<exception-page :style="`margin-top: ${marginTop}px; min-height: ${minHeight}px`" type="404" />
</template>
<script>
import ExceptionPage from '@/components/exception/ExceptionPage'
import {mapState} from 'vuex'
export default {
name: 'Exp404',
components: {ExceptionPage},
inject: ['layoutMinHeight'],
computed: {
...mapState('setting', ['multiPage']),
marginTop() {
return this.multiPage ? -24 : 0
},
minHeight() {
return this.multiPage ? this.layoutMinHeight - 32 : this.layoutMinHeight
}
}
}
</script>
<style scoped lang="less">
</style>