Skip to content

Commit 9b1316b

Browse files
committed
fix: set data-theme atribute onMount
1 parent cfc976b commit 9b1316b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

adminforth/spa/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ onMounted(async () => {
333333
await loadMenu(); // and this
334334
// before init flowbite we have to wait router initialized because it affects dom(our v-ifs) and fetch menu
335335
await initRouter();
336-
336+
document.documentElement.setAttribute('data-theme', theme.value);
337337
menu.refreshMenuBadges = async () => {
338338
await coreStore.fetchMenuBadges();
339339
}

0 commit comments

Comments
 (0)