diff --git a/public/serverConfig.json b/public/serverConfig.json index fc972e10d..adb08203d 100644 --- a/public/serverConfig.json +++ b/public/serverConfig.json @@ -14,7 +14,7 @@ "HideTabs": false, "SidebarStatus": true, "EpThemeColor": "#409EFF", - "ShowLogo": "1", + "ShowLogo": true, "ShowModel": "smart", "MapConfigure": { "amapKey": "97b3248d1553172e81f168cf94ea667e", diff --git a/src/layout/components/setting/index.vue b/src/layout/components/setting/index.vue index 1164f06a9..77214509b 100644 --- a/src/layout/components/setting/index.vue +++ b/src/layout/components/setting/index.vue @@ -79,9 +79,9 @@ if (unref(layoutTheme)) { } // 默认灵动模式 -const markValue = ref(instance.configure?.showModel || "smart"); +const markValue = ref(instance.configure?.showModel ?? "smart"); -const logoVal = ref(instance.configure?.showLogo || "1"); +const logoVal = ref(instance.configure?.showLogo ?? true); const epThemeColor = ref(useEpThemeStoreHook().getEpThemeColor); @@ -175,9 +175,9 @@ function onChange(label) { // 侧边栏Logo function logoChange() { - unref(logoVal) === "1" - ? changeStorageConfigure("showLogo", "1") - : changeStorageConfigure("showLogo", "-1"); + unref(logoVal) + ? changeStorageConfigure("showLogo", true) + : changeStorageConfigure("showLogo", false); emitter.emit("logoChange", unref(logoVal)); } @@ -399,8 +399,8 @@ nextTick(() => { { return !pureApp.getSidebarStatus; @@ -60,7 +60,7 @@ onBeforeMount(() => {