Skip to content

Commit d879803

Browse files
fix: fix cli generate vue-query
1 parent ac15719 commit d879803

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/openapi.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { join } from 'path';
55

66
import * as pkg from '../../package.json';
77
import { GenerateServiceProps, generateService } from '../index';
8-
import { IPriorityRule } from '../type';
8+
import { IPriorityRule, IReactQueryMode } from '../type';
99

1010
const params = program
1111
.name('openapi')
@@ -114,6 +114,7 @@ async function run() {
114114
requestOptionsType: params.requestOptionsType as string,
115115
apiPrefix: params.apiPrefix as string,
116116
isGenReactQuery: JSON.parse(params.isGenReactQuery as string) === true,
117+
reactQueryMode: params.reactQueryMode as IReactQueryMode,
117118
isGenJavaScript: JSON.parse(params.isGenJavaScript as string) === true,
118119
isDisplayTypeLabel:
119120
JSON.parse(params.isDisplayTypeLabel as string) === true,

0 commit comments

Comments
 (0)