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