|
|
@ -77,13 +77,11 @@ export default { |
|
|
|
components: { ThemePicker }, |
|
|
|
components: { ThemePicker }, |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
|
|
|
|
theme: this.$store.state.settings.theme, |
|
|
|
sideTheme: this.$store.state.settings.sideTheme |
|
|
|
sideTheme: this.$store.state.settings.sideTheme |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
|
theme() { |
|
|
|
|
|
|
|
return this.$store.state.settings.theme |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
fixedHeader: { |
|
|
|
fixedHeader: { |
|
|
|
get() { |
|
|
|
get() { |
|
|
|
return this.$store.state.settings.fixedHeader |
|
|
|
return this.$store.state.settings.fixedHeader |
|
|
@ -138,6 +136,7 @@ export default { |
|
|
|
key: 'theme', |
|
|
|
key: 'theme', |
|
|
|
value: val |
|
|
|
value: val |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
this.theme = val; |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleTheme(val) { |
|
|
|
handleTheme(val) { |
|
|
|
this.$store.dispatch('settings/changeSetting', { |
|
|
|
this.$store.dispatch('settings/changeSetting', { |
|
|
@ -161,7 +160,8 @@ export default { |
|
|
|
"tagsView":${this.tagsView}, |
|
|
|
"tagsView":${this.tagsView}, |
|
|
|
"fixedHeader":${this.fixedHeader}, |
|
|
|
"fixedHeader":${this.fixedHeader}, |
|
|
|
"sidebarLogo":${this.sidebarLogo}, |
|
|
|
"sidebarLogo":${this.sidebarLogo}, |
|
|
|
"sideTheme":"${this.sideTheme}" |
|
|
|
"sideTheme":"${this.sideTheme}", |
|
|
|
|
|
|
|
"theme":"${this.theme}" |
|
|
|
}` |
|
|
|
}` |
|
|
|
); |
|
|
|
); |
|
|
|
setTimeout(loading.close(), 1000) |
|
|
|
setTimeout(loading.close(), 1000) |
|
|
|