1.other.ts增加application/octet-stream白名单,增加口味模块代码

This commit is contained in:
zjf committed 2025-08-19 12:44:37 +08:00
1 parent 2b8a1f0755
commit e82a191e37
4 files changed
+269 -1

No files matched your search

+2 -1
View File
@@ -352,8 +352,9 @@ export function handleBlobFile(response: any, fileName: string) {
"text/plain",
"image/jpeg",
"image/png",
// "application/zip" // 添加 ZIP 文件类型支持
"application/octet-stream"
]
if (!allowedTypes.includes(blob.type) && blob.type !== "") {
useMessage().error("不支持的文件类型")
return