mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-03-02 18:10:47 +08:00
fix: persist theme mode across refresh
This commit is contained in:
7
frontend_nuxt/plugins/theme.client.ts
Normal file
7
frontend_nuxt/plugins/theme.client.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { defineNuxtPlugin } from '#app'
|
||||
import { initTheme } from '~/utils/theme'
|
||||
|
||||
export default defineNuxtPlugin(() => {
|
||||
initTheme()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user