mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-06-11 18:51:28 +08:00
fix 初始化时主题背景色的显示问题
This commit is contained in:
@@ -26,6 +26,8 @@ function changeTheme() {
|
||||
globalTheme.name.value = nextTheme
|
||||
savedTheme.value = nextTheme
|
||||
localStorage.setItem('theme', nextTheme)
|
||||
// 修改载入时背景色
|
||||
localStorage.setItem('materio-initial-loader-bg', globalTheme.current.value.colors.background)
|
||||
|
||||
themeTransition()
|
||||
}
|
||||
@@ -39,9 +41,9 @@ watch(
|
||||
)
|
||||
|
||||
// Apply saved theme on page load
|
||||
onMounted(() => {
|
||||
globalTheme.name.value = savedTheme.value
|
||||
})
|
||||
// onMounted(() => {
|
||||
// globalTheme.name.value = savedTheme.value
|
||||
// })
|
||||
|
||||
function hasScrollbar(el?: Element | null) {
|
||||
if (!el || el.nodeType !== Node.ELEMENT_NODE)
|
||||
|
||||
Reference in New Issue
Block a user