Skip to content

Commit 97baffc

Browse files
authored
fix: hook中取值错误 (#390)
* fix: hook中取值错误 * chore: changeset
1 parent e2c7225 commit 97baffc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/rare-loops-try.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'openapi-ts-request': patch
3+
---
4+
5+
fix: 新增的 enum label hook中取变量错误

src/generator/serviceGenarator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ export default class ServiceGenerator {
401401
customTemplate: !!hookCustomTemplateService,
402402
list: hookCustomTemplateService
403403
? hookCustomTemplateService(enums, this.config)
404-
: enums,
404+
: displayTypeLabels,
405405
namespace: this.config.namespace,
406406
interfaceFileName: interfaceFileName,
407407
}

0 commit comments

Comments
 (0)