【优化】顶栏模块坞layout布局改为动态获取

pull/210/head
俞宝山 2024-05-12 15:33:14 +08:00
parent 9cd56c69cf
commit 67c7f9db3a
1 changed files with 3 additions and 2 deletions

View File

@ -57,7 +57,6 @@
const store = globalStore() const store = globalStore()
const { moduleUnfoldOpen, topHeaderThemeColorOpen } = storeToRefs(store) const { moduleUnfoldOpen, topHeaderThemeColorOpen } = storeToRefs(store)
const moduleBackColor = ref(topHeaderThemeColorOpen) const moduleBackColor = ref(topHeaderThemeColorOpen)
const layout = ref()
const module = computed(() => { const module = computed(() => {
return store.module return store.module
}) })
@ -126,9 +125,11 @@
setSelectedKeys() setSelectedKeys()
}) })
} }
const layout = computed(() => {
return store.layout
})
onMounted(() => { onMounted(() => {
setModuleBackColor() setModuleBackColor()
layout.value = tool.data.get('SNOWY_LAYOUT')
}) })
// //
const setModuleBackColor = () => { const setModuleBackColor = () => {