修复html导出问题

This commit is contained in:
xuncha
2026-03-20 14:57:45 +08:00
parent 816770d407
commit 3fabf961e5
2 changed files with 11 additions and 1 deletions

View File

@@ -688,8 +688,16 @@ export class ConfigService {
}
}
private getUserDataPath(): string {
const workerUserDataPath = String(process.env.WEFLOW_USER_DATA_PATH || process.env.WEFLOW_CONFIG_CWD || '').trim()
if (workerUserDataPath) {
return workerUserDataPath
}
return app?.getPath?.('userData') || process.cwd()
}
getCacheBasePath(): string {
return join(app.getPath('userData'), 'cache')
return join(this.getUserDataPath(), 'cache')
}
getAll(): Partial<ConfigSchema> {