换肤路由跳转

This commit is contained in:
jhnine 2023-02-15 15:10:16 +08:00
parent 0bc24a4afd
commit 29fe222275
1 changed files with 2 additions and 0 deletions

View File

@ -109,11 +109,13 @@ export default {
changeLight() {
document.documentElement.setAttribute('jcceTheme', 'jcceLight')
localStorage.setItem('jcceTheme', 'jcceLight')
this.$router.push({ path: '/monitorSelect' })
location.reload()
},
changeDark() {
document.documentElement.setAttribute('jcceTheme', 'jcceDark')
localStorage.setItem('jcceTheme', 'jcceDark')
this.$router.push({ path: '/monitorSelect' })
location.reload()
},
toMoniter() {