1.other.ts增加application/octet-stream白名单,增加口味模块代码
This commit is contained in:
1 parent
2b8a1f0755
commit
e82a191e37
4 files changed
+269
-1
No files matched your search
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user