fix(plugin-layout): 403、404 样式优化,防止被覆盖 (#233)

This commit is contained in:
1zumii 2024-02-22 14:42:36 +08:00 committed by GitHub
parent 4a4c2ecf5c
commit 326d0ccfe2

View File

@ -1,16 +1,23 @@
<template> <template>
<div class="wrapper"> <div class="wrapper">
<img :src="iconSrc" class="icon" /> <img :src="iconSrc" class="icon">
<div class="title">{{ title }}</div> <div class="title">
<div v-if="subTitle" class="sub-title">{{ subTitle }}</div> {{ title }}
</div>
<div v-if="subTitle" class="sub-title">
{{ subTitle }}
</div>
<div class="btn-wrapper"> <div class="btn-wrapper">
<FButton type="primary" @click="click"> 返回上一页 </FButton> <FButton type="primary" @click="click">
返回上一页
</FButton>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { FButton } from '@fesjs/fes-design';
import { useRouter } from '@fesjs/fes'; import { useRouter } from '@fesjs/fes';
import { FButton } from '@fesjs/fes-design';
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
export default defineComponent({ export default defineComponent({
@ -40,12 +47,16 @@ export default defineComponent({
}, },
}); });
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.wrapper { .wrapper {
width: 100%; width: 100%;
text-align: center;
padding-top: 150px; padding-top: 150px;
padding-bottom: 50px; padding-bottom: 50px;
display: flex;
flex-direction: column;
align-items: center;
.icon { .icon {
width: 240px; width: 240px;
height: 220px; height: 220px;