|
@@ -369,15 +369,11 @@ export default {
|
|
|
// console.log(this.uploadFileList);
|
|
|
|
|
|
if (this.uploadFileList.length > 1) {
|
|
|
- if (
|
|
|
- this.uploadFileList.map((v) => v.type).includes("application/pdf")
|
|
|
- ) {
|
|
|
+ if (this.selectedFileType === "PDF") {
|
|
|
console.log("PDF文件只允许单独上传");
|
|
|
throw "取消";
|
|
|
}
|
|
|
- if (
|
|
|
- this.uploadFileList.map((v) => v.type).includes("application/zip")
|
|
|
- ) {
|
|
|
+ if (this.selectedFileType === "ZIP") {
|
|
|
console.log("ZIP文件只允许单独上传");
|
|
|
throw "取消";
|
|
|
}
|