RuoYi
2021-06-08 c16ee7fc2c6cbda1cc8e87f21f1c29b2cb5948cd
ruoyi-ui/src/layout/components/Settings/index.vue
@@ -77,13 +77,11 @@
  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 @@
        key: 'theme',
        value: val
      })
      this.theme = val;
    },
    handleTheme(val) {
      this.$store.dispatch('settings/changeSetting', {
@@ -161,7 +160,8 @@
            "tagsView":${this.tagsView},
            "fixedHeader":${this.fixedHeader},
            "sidebarLogo":${this.sidebarLogo},
            "sideTheme":"${this.sideTheme}"
            "sideTheme":"${this.sideTheme}",
            "theme":"${this.theme}"
          }`
      );
      setTimeout(loading.close(), 1000)