Fix toggleColorScheme function in doc
parent
3c13918e2b
commit
2c1e8409e9
|
@ -44,7 +44,8 @@ app.use(PrimeVue, {
|
|||
code3: {
|
||||
basic: `
|
||||
const toggleColorScheme() {
|
||||
document.body.classList.toggle("my-app-dark");
|
||||
const element = document.querySelector('html');
|
||||
element.classList.toggle('my-app-dark');
|
||||
}
|
||||
`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue