版本管理限制上传exe文件
This commit is contained in:
@@ -56,11 +56,11 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
beforeUpload(file) {
|
beforeUpload(file) {
|
||||||
// const isExe = file.name.endsWith(".exe");
|
const isExe = file.name.endsWith(".exe");
|
||||||
// if (!isExe) {
|
if (!isExe) {
|
||||||
// this.$message.error("只允许上传.exe文件!");
|
this.$message.error("只允许上传.exe文件!");
|
||||||
// return false; // 阻止上传
|
return false; // 阻止上传
|
||||||
// }
|
}
|
||||||
return true; // 允许上传
|
return true; // 允许上传
|
||||||
},
|
},
|
||||||
uploadVersionFile(e) {
|
uploadVersionFile(e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user