From e7f83fb6952e2c9a579491afbd24e83e7261682b Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期一, 06 九月 2021 10:19:58 +0800 Subject: [PATCH] update mybatis-plus 3.4.3 => 3.4.3.3 适配升级 (包含不兼容升级) 请详细阅读 mybatis-plus 官方升级文档 --- ruoyi-ui/src/layout/components/Settings/index.vue | 27 ++++++++++++++++++++++----- 1 files changed, 22 insertions(+), 5 deletions(-) diff --git a/ruoyi-ui/src/layout/components/Settings/index.vue b/ruoyi-ui/src/layout/components/Settings/index.vue index 193ccae..a96b73f 100644 --- a/ruoyi-ui/src/layout/components/Settings/index.vue +++ b/ruoyi-ui/src/layout/components/Settings/index.vue @@ -41,7 +41,7 @@ <el-divider/> <h3 class="drawer-title">绯荤粺甯冨眬閰嶇疆</h3> - + <div class="drawer-item"> <span>寮�鍚� TopNav</span> <el-switch v-model="topNav" class="drawer-switch" /> @@ -62,6 +62,11 @@ <el-switch v-model="sidebarLogo" class="drawer-switch" /> </div> + <div class="drawer-item"> + <span>鍔ㄦ�佹爣棰�</span> + <el-switch v-model="dynamicTitle" class="drawer-switch" /> + </div> + <el-divider/> <el-button size="small" type="primary" plain icon="el-icon-document-add" @click="saveSetting">淇濆瓨閰嶇疆</el-button> @@ -77,13 +82,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 @@ -131,6 +134,17 @@ }) } }, + dynamicTitle: { + get() { + return this.$store.state.settings.dynamicTitle + }, + set(val) { + this.$store.dispatch('settings/changeSetting', { + key: 'dynamicTitle', + value: val + }) + } + }, }, methods: { themeChange(val) { @@ -138,6 +152,7 @@ key: 'theme', value: val }) + this.theme = val; }, handleTheme(val) { this.$store.dispatch('settings/changeSetting', { @@ -161,7 +176,9 @@ "tagsView":${this.tagsView}, "fixedHeader":${this.fixedHeader}, "sidebarLogo":${this.sidebarLogo}, - "sideTheme":"${this.sideTheme}" + "dynamicTitle":${this.dynamicTitle}, + "sideTheme":"${this.sideTheme}", + "theme":"${this.theme}" }` ); setTimeout(loading.close(), 1000) -- Gitblit v1.9.3