Browse Source

chore: 默认隐藏页脚

xiaoxian521 1 year ago
parent
commit
a0c56e99b7
3 changed files with 3 additions and 3 deletions
  1. 1 1
      public/platform-config.json
  2. 1 1
      src/layout/hooks/useLayout.ts
  3. 1 1
      src/utils/responsive.ts

+ 1 - 1
public/platform-config.json

@@ -12,7 +12,7 @@
   "Grey": false,
   "Weak": false,
   "HideTabs": false,
-  "HideFooter": false,
+  "HideFooter": true,
   "SidebarStatus": true,
   "EpThemeColor": "#409EFF",
   "ShowLogo": true,

+ 1 - 1
src/layout/hooks/useLayout.ts

@@ -36,7 +36,7 @@ export function useLayout() {
         grey: $config?.Grey ?? false,
         weak: $config?.Weak ?? false,
         hideTabs: $config?.HideTabs ?? false,
-        hideFooter: $config.HideFooter ?? false,
+        hideFooter: $config.HideFooter ?? true,
         showLogo: $config?.ShowLogo ?? true,
         showModel: $config?.ShowModel ?? "smart",
         multiTagsCache: $config?.MultiTagsCache ?? false

+ 1 - 1
src/utils/responsive.ts

@@ -24,7 +24,7 @@ export const injectResponsiveStorage = (app: App, config: PlatformConfigs) => {
         grey: config.Grey ?? false,
         weak: config.Weak ?? false,
         hideTabs: config.HideTabs ?? false,
-        hideFooter: config.HideFooter ?? false,
+        hideFooter: config.HideFooter ?? true,
         showLogo: config.ShowLogo ?? true,
         showModel: config.ShowModel ?? "smart",
         multiTagsCache: config.MultiTagsCache ?? false