Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
wangshunnn committed Jan 16, 2025
1 parent fcda47f commit 6a1f7fe
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions docs-vitepress/.vitepress/theme/layouts/HomepageLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export default {
// 非首页回到首页,关闭暗色模式
// 非首页,切换到首页,再切换回来,保持之前非首页的亮暗模式
watch(() => isDark.value, (value) => {
console.log('watch isDark --->', value)
if (frontmatter.value.layout === 'homepageLayout') {
if (value) {
isDark.value = false
Expand All @@ -57,7 +56,6 @@ export default {
}
}, { immediate: true })
watch(() => frontmatter.value.layout, (val) => {
console.log('watch frontmatter.value.layout --->', val)
if (val === 'homepageLayout') {
if (isDark.value) {
isDark.value = false
Expand Down

0 comments on commit 6a1f7fe

Please sign in to comment.