()
| 20 | return t || 'light' |
| 21 | }) |
| 22 | const resetHtmlThemeTag = () => { |
| 23 | const html = document.documentElement |
| 24 | html.classList.remove('dark', 'light') |
| 25 | if (theme?.value) { |
| 26 | html.classList.add(theme?.value) |
| 27 | } |
| 28 | } |
| 29 | resetHtmlThemeTag() |
| 30 | |
| 31 | watch(theme, (v) => { |