File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,9 @@ export default {
3131
3232 mounted () {
3333 const mode = localStorage .getItem (' mode' )
34- const { mode: customizeMode } = this .$themeConfig
35- this .currentMode = mode ?? (customizeMode === null || customizeMode === undefined ? ' auto' : customizeMode)
34+ const { mode: customizeMode , modePicker } = this .$themeConfig
35+ const themeMode = customizeMode ?? ' auto'
36+ this .currentMode = modePicker === false ? themeMode : mode ?? themeMode
3637 setMode (this .currentMode )
3738 },
3839
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