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