mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-16 01:40:15 +08:00
fix(dashboard): use global.name.value for Vuetify 3 theme change
This commit is contained in:
@@ -45,7 +45,7 @@ watch(
|
||||
() => customizer.uiTheme,
|
||||
(newTheme) => {
|
||||
if (newTheme) {
|
||||
theme.change(newTheme);
|
||||
theme.global.name.value = newTheme;
|
||||
}
|
||||
},
|
||||
{ immediate: true },
|
||||
|
||||
@@ -47,7 +47,7 @@ async function mountApp(app: any, pinia: any, waitForRouter = true) {
|
||||
|
||||
// 挂载后同步 Vuetify 主题
|
||||
const customizer = useCustomizerStore(pinia);
|
||||
vuetify.theme.change(customizer.uiTheme);
|
||||
vuetify.theme.global.name.value = customizer.uiTheme;
|
||||
const storedPrimary = localStorage.getItem("themePrimary");
|
||||
const storedSecondary = localStorage.getItem("themeSecondary");
|
||||
if (storedPrimary || storedSecondary) {
|
||||
|
||||
Reference in New Issue
Block a user