refactor: 优化WangEditor组件及配置,添加QueryCustomizer,移除undertow依赖
This commit is contained in:
parent
80cbd417f5
commit
70ca8370b0
@ -55,17 +55,17 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}},
|
}},
|
||||||
computed: {
|
|
||||||
...mapGetters([
|
|
||||||
'imagesUploadApi',
|
|
||||||
'baseApi'
|
|
||||||
])
|
|
||||||
},
|
|
||||||
editMode: 'simple',
|
editMode: 'simple',
|
||||||
editor: null,
|
editor: null,
|
||||||
editValue: null
|
editValue: null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
...mapGetters([
|
||||||
|
'imagesUploadApi',
|
||||||
|
'baseApi'
|
||||||
|
])
|
||||||
|
},
|
||||||
watch: {
|
watch: {
|
||||||
editValue(newVal, oldVal) {
|
editValue(newVal, oldVal) {
|
||||||
this.$emit('input', newVal)
|
this.$emit('input', newVal)
|
||||||
|
@ -10,7 +10,6 @@ const getters = {
|
|||||||
roles: state => state.user.roles,
|
roles: state => state.user.roles,
|
||||||
user: state => state.user.user,
|
user: state => state.user.user,
|
||||||
loadMenus: state => state.user.loadMenus,
|
loadMenus: state => state.user.loadMenus,
|
||||||
permission_routers: state => state.permission.routers,
|
|
||||||
addRouters: state => state.permission.addRouters,
|
addRouters: state => state.permission.addRouters,
|
||||||
imagesUploadApi: state => state.api.imagesUploadApi,
|
imagesUploadApi: state => state.api.imagesUploadApi,
|
||||||
baseApi: state => state.api.baseApi,
|
baseApi: state => state.api.baseApi,
|
||||||
|
@ -23,7 +23,7 @@ import java.io.File;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @date 2018-12-28
|
* @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
|
@Configuration
|
||||||
public class MultipartConfig {
|
public class MultipartConfig {
|
||||||
|
@ -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", "[]{}");
|
||||||
|
}
|
||||||
|
}
|
@ -43,18 +43,6 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-web</artifactId>
|
<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>
|
</dependency>
|
||||||
|
|
||||||
<!--Spring boot 测试-->
|
<!--Spring boot 测试-->
|
||||||
|
Loading…
Reference in New Issue
Block a user