chore: optimize the code of page 404; 🌟

This commit is contained in:
chenghongxing 2020-07-25 13:35:33 +08:00
parent a3bca2756e
commit 657c061b89

View File

@ -1,5 +1,5 @@
<template> <template>
<exception-page :style="`min-height: ${pageMinHeight}px`" type="404" /> <exception-page :style="`min-height: ${minHeight}`" type="404" />
</template> </template>
<script> <script>
@ -9,7 +9,10 @@ export default {
name: 'Exp404', name: 'Exp404',
components: {ExceptionPage}, components: {ExceptionPage},
computed: { computed: {
...mapState('setting', ['pageMinHeight']) ...mapState('setting', ['pageMinHeight']),
minHeight() {
return this.pageMinHeight ? this.pageMinHeight + 'px' : '100vh'
}
} }
} }
</script> </script>