File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
packages/vuepress-theme-reco/components Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,9 @@ export default {
3030
3131 mounted () {
3232 const mode = localStorage .getItem (' mode' )
33- const { mode: customizeMode } = this .$themeConfig
34- this .currentMode = mode ?? customizeMode ?? ' auto'
33+ const { mode: customMode , modePicker } = this .$themeConfig
34+ const themeMode = customMode ?? ' auto'
35+ this .currentMode = modePicker === false ? themeMode : mode ?? themeMode
3536 setMode (this .currentMode )
3637 },
3738
Original file line number Diff line number Diff line change 2222 'max-width': linksWrapMaxWidth + 'px'
2323 } : {}" >
2424
25- <Mode v-show =" $themeConfig.mode !== null " />
25+ <Mode v-show =" $themeConfig.modePicker !== false " />
2626 <AlgoliaSearchBox
2727 v-if =" isAlgoliaSearch"
2828 :options =" algolia" />
You can’t perform that action at this time.
0 commit comments