Skip to content

Commit 5f701a7

Browse files
committed
fix(dashboard): use global.name.value for Vuetify 3 theme change
1 parent 582a63b commit 5f701a7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dashboard/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ watch(
4545
() => customizer.uiTheme,
4646
(newTheme) => {
4747
if (newTheme) {
48-
theme.change(newTheme);
48+
theme.global.name.value = newTheme;
4949
}
5050
},
5151
{ immediate: true },

dashboard/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async function mountApp(app: any, pinia: any, waitForRouter = true) {
4747

4848
// 挂载后同步 Vuetify 主题
4949
const customizer = useCustomizerStore(pinia);
50-
vuetify.theme.change(customizer.uiTheme);
50+
vuetify.theme.global.name.value = customizer.uiTheme;
5151
const storedPrimary = localStorage.getItem("themePrimary");
5252
const storedSecondary = localStorage.getItem("themeSecondary");
5353
if (storedPrimary || storedSecondary) {

0 commit comments

Comments
 (0)