From 02e23050d5bc7abe05b1fb29a7dfd062a9bb4180 Mon Sep 17 00:00:00 2001 From: npmrun <1549469775@qq.com> Date: Fri, 17 Apr 2026 00:34:51 +0800 Subject: [PATCH] feat: create AppShell component and refactor layouts for improved structure Introduce a new AppShell component to encapsulate the main application layout, including header, footer, and menu items. Refactor existing layouts (default and not-login) to utilize the new AppShell component, enhancing code reusability and maintainability. Update the blank layout for a simplified structure. Modify index, login, and register pages for consistent styling and improved user experience. --- app/components/AppShell.vue | 83 ++++++++++++++++++++++++++++++++++++++++++++ app/layouts/blank.vue | 7 ++++ app/layouts/default.vue | 80 +++--------------------------------------- app/layouts/not-login.vue | 76 +++------------------------------------- app/pages/index/index.vue | 61 +++++++++++++++++++++++++++----- app/pages/login/index.vue | 25 ++++++++----- app/pages/register/index.vue | 25 ++++++++----- 7 files changed, 184 insertions(+), 173 deletions(-) create mode 100644 app/components/AppShell.vue create mode 100644 app/layouts/blank.vue diff --git a/app/components/AppShell.vue b/app/components/AppShell.vue new file mode 100644 index 0000000..b3d778c --- /dev/null +++ b/app/components/AppShell.vue @@ -0,0 +1,83 @@ + + + diff --git a/app/layouts/blank.vue b/app/layouts/blank.vue new file mode 100644 index 0000000..84888ff --- /dev/null +++ b/app/layouts/blank.vue @@ -0,0 +1,7 @@ + diff --git a/app/layouts/default.vue b/app/layouts/default.vue index 7a3e681..5dc532a 100644 --- a/app/layouts/default.vue +++ b/app/layouts/default.vue @@ -1,77 +1,5 @@ - - \ No newline at end of file + + + + \ No newline at end of file diff --git a/app/layouts/not-login.vue b/app/layouts/not-login.vue index d6ee668..223e64d 100644 --- a/app/layouts/not-login.vue +++ b/app/layouts/not-login.vue @@ -1,73 +1,5 @@ - - \ No newline at end of file + + + + \ No newline at end of file diff --git a/app/pages/index/index.vue b/app/pages/index/index.vue index 2a15808..a953a52 100644 --- a/app/pages/index/index.vue +++ b/app/pages/index/index.vue @@ -19,23 +19,66 @@ async function logout() {