Skip to content

Commit 447467c

Browse files
author
reco_luan
committed
fix(vuepress-theme-reco): replace '??' to '||'
1 parent 28e234b commit 447467c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/vuepress-theme-reco/components/Mode/ModePicker.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ export default {
3131
mounted () {
3232
const mode = localStorage.getItem('mode')
3333
const { mode: customMode, modePicker } = this.$themeConfig
34-
const themeMode = customMode ?? 'auto'
35-
this.currentMode = modePicker === false ? themeMode : mode ?? themeMode
34+
const themeMode = customMode || 'auto'
35+
this.currentMode = modePicker === false ? themeMode : mode || themeMode
3636
setMode(this.currentMode)
3737
},
3838

0 commit comments

Comments
 (0)