Merge remote-tracking branch 'github_public/main'

This commit is contained in:
wizardchen
2025-11-20 15:49:43 +08:00
51 changed files with 3293 additions and 1922 deletions
+1 -1
View File
@@ -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("文件类型错误!");