From e4b4d0939d40f7df51f871a05dbb771eb4785e69 Mon Sep 17 00:00:00 2001
From: 1zumii <524123601@qq.com>
Date: Thu, 22 Feb 2024 14:42:36 +0800
Subject: [PATCH] =?UTF-8?q?fix(plugin-layout):=20403=E3=80=81404=20?=
 =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96=EF=BC=8C=E9=98=B2=E6=AD=A2?=
 =?UTF-8?q?=E8=A2=AB=E8=A6=86=E7=9B=96=20(#233)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../src/runtime/views/components/Wrapper.vue  | 23 ++++++++++++++-----
 1 file changed, 17 insertions(+), 6 deletions(-)

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