From d0163a7df4a5e0e93a984139c7e6f5ebe873fd12 Mon Sep 17 00:00:00 2001 From: lrl <742798240@qq.com> Date: Fri, 13 Oct 2023 20:01:06 +0800 Subject: [PATCH 1/4] feat: add app footer --- src/layout/components/appMain.vue | 14 +++++++++++--- src/layout/components/footer/index.vue | 20 ++++++++++++++++++++ 2 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 src/layout/components/footer/index.vue diff --git a/src/layout/components/appMain.vue b/src/layout/components/appMain.vue index 0cf1be2fd6..5177337de0 100644 --- a/src/layout/components/appMain.vue +++ b/src/layout/components/appMain.vue @@ -1,4 +1,5 @@ + + + + From 492a7507a65b78b65327119644668f0a809ebf66 Mon Sep 17 00:00:00 2001 From: lrl <742798240@qq.com> Date: Sat, 14 Oct 2023 01:57:43 +0800 Subject: [PATCH 2/4] feat: add footer global configuration --- public/platform-config.json | 1 + src/layout/components/appMain.vue | 6 +++++- src/layout/components/setting/index.vue | 21 +++++++++++++++++++++ src/layout/hooks/useLayout.ts | 1 + src/utils/responsive.ts | 1 + types/global.d.ts | 3 +++ 6 files changed, 32 insertions(+), 1 deletion(-) diff --git a/public/platform-config.json b/public/platform-config.json index 4bab15ad83..6860406f98 100644 --- a/public/platform-config.json +++ b/public/platform-config.json @@ -12,6 +12,7 @@ "Grey": false, "Weak": false, "HideTabs": false, + "HideFooter": false, "SidebarStatus": true, "EpThemeColor": "#409EFF", "ShowLogo": true, diff --git a/src/layout/components/appMain.vue b/src/layout/components/appMain.vue index 5177337de0..3ceac30d52 100644 --- a/src/layout/components/appMain.vue +++ b/src/layout/components/appMain.vue @@ -25,6 +25,10 @@ const hideTabs = computed(() => { return $storage?.configure.hideTabs; }); +const hideFooter = computed(() => { + return $storage?.configure.hideFooter; +}); + const layout = computed(() => { return $storage?.layout.layout === "vertical"; }); @@ -126,7 +130,7 @@ const transitionMain = defineComponent({ -