diff --git a/components/Navbar.vue b/components/Navbar.vue
index ef7e4a7..ab7479f 100644
--- a/components/Navbar.vue
+++ b/components/Navbar.vue
@@ -21,7 +21,7 @@
:style="linksWrapMaxWidth ? {
'max-width': linksWrapMaxWidth + 'px'
} : {}">
-
+
@@ -43,13 +43,15 @@ export default {
data () {
return {
- linksWrapMaxWidth: null
+ linksWrapMaxWidth: null,
+ hasThemes: false
}
},
mounted () {
const MOBILE_DESKTOP_BREAKPOINT = 719 // refer to config.styl
const NAVBAR_VERTICAL_PADDING = parseInt(css(this.$el, 'paddingLeft')) + parseInt(css(this.$el, 'paddingRight'))
+ const { themePicker } = this.$themeConfig
const handleLinksWrapWidth = () => {
if (document.documentElement.clientWidth < MOBILE_DESKTOP_BREAKPOINT) {
this.linksWrapMaxWidth = null
@@ -60,6 +62,9 @@ export default {
}
handleLinksWrapWidth()
window.addEventListener('resize', handleLinksWrapWidth, false)
+ console.log(234, themePicker)
+ this.hasThemes = themePicker === undefined ? true : themePicker
+ console.log(234, this.hasThemes)
},
computed: {
diff --git a/components/Theme/ThemeOptions.vue b/components/Theme/ThemeOptions.vue
index ff78a94..dab7955 100755
--- a/components/Theme/ThemeOptions.vue
+++ b/components/Theme/ThemeOptions.vue
@@ -1,14 +1,14 @@
-
+
-
+
@@ -16,19 +16,28 @@