From c16ee7fc2c6cbda1cc8e87f21f1c29b2cb5948cd Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期二, 08 六月 2021 16:34:36 +0800 Subject: [PATCH] 升级swagger到最新版本v3.0.0 --- ruoyi-ui/src/layout/components/Settings/index.vue | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ruoyi-ui/src/layout/components/Settings/index.vue b/ruoyi-ui/src/layout/components/Settings/index.vue index eba8139..efdc0fd 100644 --- a/ruoyi-ui/src/layout/components/Settings/index.vue +++ b/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) -- Gitblit v1.9.2