diff --git a/public/serverConfig.json b/public/serverConfig.json index 538068f27..3b697d86c 100644 --- a/public/serverConfig.json +++ b/public/serverConfig.json @@ -7,6 +7,9 @@ "Locale": "zh", "Layout": "vertical", "Theme": "default", + "Grey": false, + "Weak": false, + "HideTabs": false, "MapConfigure": { "amapKey": "97b3248d1553172e81f168cf94ea667e", "baiduKey": "wTHbkkEweiFqZLKunMIjcrb2RcqNXkhc", diff --git a/src/layout/components/appMain.vue b/src/layout/components/appMain.vue index 4cfb26ae1..7533c16e9 100644 --- a/src/layout/components/appMain.vue +++ b/src/layout/components/appMain.vue @@ -17,6 +17,8 @@ const props = defineProps({ const keepAlive: Boolean = ref( getCurrentInstance().appContext.config.globalProperties.$config?.KeepAlive ); +const instance = + getCurrentInstance().appContext.app.config.globalProperties.$storage; const transitions = computed(() => { return route => { @@ -24,6 +26,13 @@ const transitions = computed(() => { }; }); +const hideTabs = computed(() => { + return instance?.sets.hideTabs; +}); +const layout = computed(() => { + return instance?.layout.layout === "vertical"; +}); + const transitionMain = defineComponent({ render() { return h( @@ -62,6 +71,12 @@ const transitionMain = defineComponent({