Compare commits
4 Commits
3f32d4a79d
...
8cf5b47384
| Author | SHA1 | Date |
|---|---|---|
|
|
8cf5b47384 | |
|
|
a6bcebb62b | |
|
|
1cb262daa3 | |
|
|
a3d0bc469b |
|
|
@ -29,7 +29,7 @@ http {
|
|||
}
|
||||
|
||||
# 避免actuator暴露
|
||||
if ($request_uri ~ "/actuator") {
|
||||
if ($uri ~ "/actuator") {
|
||||
return 403;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ export default {
|
|||
if (this.fileType) {
|
||||
const fileName = file.name.split('.');
|
||||
const fileExt = fileName[fileName.length - 1];
|
||||
const isTypeOk = this.fileType.indexOf(fileExt) >= 0;
|
||||
const isTypeOk = this.fileType.toLowerCase().indexOf(fileExt.toLowerCase()) >= 0;
|
||||
if (!isTypeOk) {
|
||||
this.$modal.msgError(`文件格式不正确,请上传${this.fileType.join("/")}格式文件!`);
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue