mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-04 11:49:02 +08:00
fix(Doc2xPreprocessProvider): replace filePath split with path.parse… (#8042)
This commit is contained in:
parent
10e512f32e
commit
808a22d5c6
@ -217,7 +217,7 @@ export default class Doc2xPreprocessProvider extends BasePreprocessProvider {
|
|||||||
* @param filePath 文件路径
|
* @param filePath 文件路径
|
||||||
*/
|
*/
|
||||||
private async convertFile(uid: string, filePath: string): Promise<void> {
|
private async convertFile(uid: string, filePath: string): Promise<void> {
|
||||||
const fileName = path.basename(filePath).split('.')[0]
|
const fileName = path.parse(filePath).name
|
||||||
const config = {
|
const config = {
|
||||||
...this.createAuthConfig(),
|
...this.createAuthConfig(),
|
||||||
headers: {
|
headers: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user