mirror of
https://github.com/Tencent/WeKnora.git
synced 2025-11-25 03:15:00 +08:00
feat: 新增 CSV、XLSX、XLS 文件类型解析支持
This commit is contained in:
@@ -23,7 +23,7 @@ export function formatStringDate(date: any) {
|
||||
);
|
||||
}
|
||||
export function kbFileTypeVerification(file: any) {
|
||||
let validTypes = ["pdf", "txt", "md", "docx", "doc", "jpg", "jpeg", "png"];
|
||||
let validTypes = ["pdf", "txt", "md", "docx", "doc", "jpg", "jpeg", "png", "csv", "xlsx", "xls"];
|
||||
let type = file.name.substring(file.name.lastIndexOf(".") + 1);
|
||||
if (!validTypes.includes(type)) {
|
||||
MessagePlugin.error("文件类型错误!");
|
||||
|
||||
Reference in New Issue
Block a user