diff --git a/src/main/knowledage/preprocess/Doc2xPreprocessProvider.ts b/src/main/knowledage/preprocess/Doc2xPreprocessProvider.ts index ad311a5b83..5851d33b86 100644 --- a/src/main/knowledage/preprocess/Doc2xPreprocessProvider.ts +++ b/src/main/knowledage/preprocess/Doc2xPreprocessProvider.ts @@ -217,7 +217,7 @@ export default class Doc2xPreprocessProvider extends BasePreprocessProvider { * @param filePath 文件路径 */ private async convertFile(uid: string, filePath: string): Promise { - const fileName = path.basename(filePath).split('.')[0] + const fileName = path.parse(filePath).name const config = { ...this.createAuthConfig(), headers: {