refactor: 优化WangEditor组件及配置,添加QueryCustomizer,移除undertow依赖

This commit is contained in:
Jie Zheng 2025-01-15 14:49:18 +08:00
parent 80cbd417f5
commit 70ca8370b0
5 changed files with 40 additions and 20 deletions

View File

@ -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)

View File

@ -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,

View File

@ -23,7 +23,7 @@ import java.io.File;
/**
* @date 2018-12-28
* @author https://blog.csdn.net/llibin1024530411/article/details/79474953
* @author <a href="https://blog.csdn.net/llibin1024530411/article/details/79474953">...</a>
*/
@Configuration
public class MultipartConfig {

View File

@ -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", "[]{}");
}
}

View File

@ -43,18 +43,6 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- undertow -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-undertow</artifactId>
</dependency>
<!--Spring boot 测试-->