Skip to content

Commit 7406abd

Browse files
committed
feat: axios method 参数值调整为大写
1 parent eede7c3 commit 7406abd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/printer/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ export class Printer {
363363
return `${jsDoc.print()}
364364
export async function ${funcName}(${requestArgs.toArgs()}): ${AXIOS_PROMISE_TYPE_NAME}<${respType}> {
365365
return ${AXIOS_IMPORT_NAME}({
366-
method: ${JSON.stringify(method)},
366+
method: ${JSON.stringify(method.toUpperCase())},
367367
${requestArgs.toValues()}
368368
});
369369
}`;

0 commit comments

Comments
 (0)