JS多文件类型判断 getFileType(fileType) { switch (fileType) { case "html": case "css": case "js": return "前端"; case "java": case "python": return "后端"; case "office": return "文档"; default: return "未知类型"; } },