mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-06 04:00:06 +08:00
chore: optimize the code of page 404; 🌟
This commit is contained in:
parent
a3bca2756e
commit
657c061b89
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user