mirror of https://gitee.com/xiaonuobase/snowy
【优化】顶栏模块坞layout布局改为动态获取
parent
9cd56c69cf
commit
67c7f9db3a
|
@ -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 = () => {
|
||||||
|
|
Loading…
Reference in New Issue