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({ - + diff --git a/src/layout/components/setting/index.vue b/src/layout/components/setting/index.vue index 9600a8455f..49cfc06d97 100644 --- a/src/layout/components/setting/index.vue +++ b/src/layout/components/setting/index.vue @@ -66,6 +66,7 @@ const settings = reactive({ tabsVal: $storage.configure.hideTabs, showLogo: $storage.configure.showLogo, showModel: $storage.configure.showModel, + hideFooter: $storage.configure.hideFooter, multiTagsCache: $storage.configure.multiTagsCache }); @@ -111,12 +112,20 @@ const weekChange = (value): void => { storageConfigureChange("weak", value); }; +/** 隐藏标签页设置 */ const tagsChange = () => { const showVal = settings.tabsVal; storageConfigureChange("hideTabs", showVal); emitter.emit("tagViewsChange", showVal as unknown as string); }; +/** 隐藏页脚设置 */ +const hideFooterChange = () => { + const hideFooter = settings.hideFooter; + storageConfigureChange("hideFooter", hideFooter); +}; + +/** 标签页持久化设置 */ const multiTagsCacheChange = () => { const multiTagsCache = settings.multiTagsCache; storageConfigureChange("multiTagsCache", multiTagsCache); @@ -218,6 +227,7 @@ onBeforeMount(() => { settings.weakVal && document.querySelector("html")?.setAttribute("class", "html-weakness"); settings.tabsVal && tagsChange(); + settings.hideFooter && hideFooterChange(); }); }); @@ -344,6 +354,17 @@ onBeforeMount(() => { @change="tagsChange" /> +