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>
|
<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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user