From bef080c60abc30ae4e1cf5a131a9564b41d2bb63 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sun, 18 Apr 2021 15:45:37 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=8D=87=E7=BA=A7mybatis=E5=88=B0=E6=9C=80?= =?UTF-8?q?=E6=96=B0=E7=89=883.5.6=20=E9=98=BB=E6=AD=A2=E8=BF=9C=E7=A8=8B?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=89=A7=E8=A1=8C=E6=BC=8F=E6=B4=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 48 ++++++++++++++++++++++++++++-------------------- 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/pom.xml b/pom.xml index 732ab7c1..53467b25 100644 --- a/pom.xml +++ b/pom.xml @@ -22,6 +22,7 @@ 1.21 2.9.2 2.3.2 + 2.1.4 1.3.0 1.2.75 5.6.0 @@ -37,7 +38,7 @@ - + org.springframework.boot @@ -46,28 +47,35 @@ pom import - + com.alibaba druid-spring-boot-starter ${druid.version} - + eu.bitwalker UserAgentUtils ${bitwalker.version} - + + + + org.mybatis.spring.boot + mybatis-spring-boot-starter + ${mybatis-spring-boot.version} + + com.github.pagehelper pagehelper-spring-boot-starter ${pagehelper.boot.version} - + com.github.oshi @@ -86,7 +94,7 @@ jna-platform ${jna.version} - + io.springfox @@ -103,35 +111,35 @@ - + io.springfox springfox-swagger-ui ${swagger.version} - + commons-io commons-io ${commons.io.version} - + commons-fileupload commons-fileupload ${commons.fileupload.version} - + org.apache.poi poi-ooxml ${poi.version} - + org.apache.velocity @@ -144,63 +152,63 @@ - + commons-collections commons-collections ${commons.collections.version} - + com.alibaba fastjson ${fastjson.version} - + io.jsonwebtoken jjwt ${jwt.version} - + com.github.penggle kaptcha ${kaptcha.version} - + com.ruoyi ruoyi-quartz ${ruoyi.version} - + com.ruoyi ruoyi-generator ${ruoyi.version} - + com.ruoyi ruoyi-framework ${ruoyi.version} - + com.ruoyi ruoyi-system ${ruoyi.version} - + com.ruoyi From cb18eec802f39e5a2b260dbcdc5a0096733ce796 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sun, 18 Apr 2021 15:45:49 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/ruoyi/generator/util/VelocityInitializer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-generator/src/main/java/com/ruoyi/generator/util/VelocityInitializer.java b/ruoyi-generator/src/main/java/com/ruoyi/generator/util/VelocityInitializer.java index 889ae9fd..4be1eecb 100644 --- a/ruoyi-generator/src/main/java/com/ruoyi/generator/util/VelocityInitializer.java +++ b/ruoyi-generator/src/main/java/com/ruoyi/generator/util/VelocityInitializer.java @@ -22,7 +22,7 @@ public class VelocityInitializer // 加载classpath目录下的vm文件 p.setProperty("file.resource.loader.class", "org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader"); // 定义字符集 - p.setProperty(Velocity.ENCODING_DEFAULT, Constants.UTF8); + p.setProperty(Velocity.INPUT_ENCODING, Constants.UTF8); p.setProperty(Velocity.OUTPUT_ENCODING, Constants.UTF8); // 初始化Velocity引擎,指定配置Properties Velocity.init(p); From e60a69b670dd64ee4ae0d6267880010d396a208e Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sun, 18 Apr 2021 18:33:13 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E9=A1=B6=E9=83=A8?= =?UTF-8?q?=E6=A0=8F=E4=B8=80=E7=BA=A7=E8=8F=9C=E5=8D=95=E5=86=85=E9=83=A8?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/components/TopNav/index.vue | 40 ++++++++++++++++-------- 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/ruoyi-ui/src/components/TopNav/index.vue b/ruoyi-ui/src/components/TopNav/index.vue index 3eebda4c..c5e0e017 100644 --- a/ruoyi-ui/src/components/TopNav/index.vue +++ b/ruoyi-ui/src/components/TopNav/index.vue @@ -30,9 +30,6 @@ - diff --git a/ruoyi-ui/src/layout/components/Settings/index.vue b/ruoyi-ui/src/layout/components/Settings/index.vue index eba81398..efdc0fd0 100644 --- a/ruoyi-ui/src/layout/components/Settings/index.vue +++ b/ruoyi-ui/src/layout/components/Settings/index.vue @@ -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) diff --git a/ruoyi-ui/src/store/modules/settings.js b/ruoyi-ui/src/store/modules/settings.js index 7192f1c0..aeedaba1 100644 --- a/ruoyi-ui/src/store/modules/settings.js +++ b/ruoyi-ui/src/store/modules/settings.js @@ -5,7 +5,7 @@ const { sideTheme, showSettings, topNav, tagsView, fixedHeader, sidebarLogo } = const storageSetting = JSON.parse(localStorage.getItem('layout-setting')) || '' const state = { - theme: variables.theme, + theme: storageSetting.theme || variables.theme, sideTheme: storageSetting.sideTheme || sideTheme, showSettings: showSettings, topNav: storageSetting.topNav === undefined ? topNav : storageSetting.topNav,