From 70ca8370b0be3a29046c767ecbfb3e3a6142f34a Mon Sep 17 00:00:00 2001
From: Jie Zheng <201507802@qq.com>
Date: Wed, 15 Jan 2025 14:49:18 +0800
Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96WangEditor?=
=?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=8F=8A=E9=85=8D=E7=BD=AE=EF=BC=8C=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0QueryCustomizer=EF=BC=8C=E7=A7=BB=E9=99=A4undertow?=
=?UTF-8?q?=E4=BE=9D=E8=B5=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/components/WangEditor/index.vue | 12 +++----
eladmin-web/src/store/getters.js | 1 -
.../config/webConfig/MultipartConfig.java | 2 +-
.../config/webConfig/QueryCustomizer.java | 33 +++++++++++++++++++
eladmin/pom.xml | 12 -------
5 files changed, 40 insertions(+), 20 deletions(-)
create mode 100644 eladmin/eladmin-common/src/main/java/me/zhengjie/config/webConfig/QueryCustomizer.java
diff --git a/eladmin-web/src/components/WangEditor/index.vue b/eladmin-web/src/components/WangEditor/index.vue
index 9da6b8b..a5df339 100644
--- a/eladmin-web/src/components/WangEditor/index.vue
+++ b/eladmin-web/src/components/WangEditor/index.vue
@@ -55,17 +55,17 @@ export default {
}
}
}},
- computed: {
- ...mapGetters([
- 'imagesUploadApi',
- 'baseApi'
- ])
- },
editMode: 'simple',
editor: null,
editValue: null
}
},
+ computed: {
+ ...mapGetters([
+ 'imagesUploadApi',
+ 'baseApi'
+ ])
+ },
watch: {
editValue(newVal, oldVal) {
this.$emit('input', newVal)
diff --git a/eladmin-web/src/store/getters.js b/eladmin-web/src/store/getters.js
index 4b32b51..af5cab1 100644
--- a/eladmin-web/src/store/getters.js
+++ b/eladmin-web/src/store/getters.js
@@ -10,7 +10,6 @@ const getters = {
roles: state => state.user.roles,
user: state => state.user.user,
loadMenus: state => state.user.loadMenus,
- permission_routers: state => state.permission.routers,
addRouters: state => state.permission.addRouters,
imagesUploadApi: state => state.api.imagesUploadApi,
baseApi: state => state.api.baseApi,
diff --git a/eladmin/eladmin-common/src/main/java/me/zhengjie/config/webConfig/MultipartConfig.java b/eladmin/eladmin-common/src/main/java/me/zhengjie/config/webConfig/MultipartConfig.java
index 7a5caf4..33b4a93 100644
--- a/eladmin/eladmin-common/src/main/java/me/zhengjie/config/webConfig/MultipartConfig.java
+++ b/eladmin/eladmin-common/src/main/java/me/zhengjie/config/webConfig/MultipartConfig.java
@@ -23,7 +23,7 @@ import java.io.File;
/**
* @date 2018-12-28
- * @author https://blog.csdn.net/llibin1024530411/article/details/79474953
+ * @author ...
*/
@Configuration
public class MultipartConfig {
diff --git a/eladmin/eladmin-common/src/main/java/me/zhengjie/config/webConfig/QueryCustomizer.java b/eladmin/eladmin-common/src/main/java/me/zhengjie/config/webConfig/QueryCustomizer.java
new file mode 100644
index 0000000..6744e7b
--- /dev/null
+++ b/eladmin/eladmin-common/src/main/java/me/zhengjie/config/webConfig/QueryCustomizer.java
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2019-2023 Zheng Jie
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package me.zhengjie.config.webConfig;
+
+import org.apache.catalina.connector.Connector;
+import org.springframework.boot.web.embedded.tomcat.TomcatConnectorCustomizer;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * 允许在查询字符串中使用特定的特殊字符
+ * @author bearBoy80
+ */
+@Configuration(proxyBeanMethods = false)
+public class QueryCustomizer implements TomcatConnectorCustomizer {
+
+ @Override
+ public void customize(Connector connector) {
+ connector.setProperty("relaxedQueryChars", "[]{}");
+ }
+}
diff --git a/eladmin/pom.xml b/eladmin/pom.xml
index 9a0bd26..5a91c6f 100644
--- a/eladmin/pom.xml
+++ b/eladmin/pom.xml
@@ -43,18 +43,6 @@
org.springframework.boot
spring-boot-starter-web
-
-
- org.springframework.boot
- spring-boot-starter-tomcat
-
-
-
-
-
-
- org.springframework.boot
- spring-boot-starter-undertow