chore: 优化代码结构,将 CustomRequestOptions 定义到 http/types.ts 下

This commit is contained in:
Utopia
2025-08-11 16:33:15 +08:00
parent ef98c4d596
commit 3402624002
12 changed files with 20 additions and 16 deletions

View File

@@ -4,7 +4,7 @@ export default [
{
schemaPath: 'http://petstore.swagger.io/v2/swagger.json',
serversPath: './src/service',
requestLibPath: `import request from '@/http/vue-query';\n import { CustomRequestOptions } from '@/http/interceptor';`,
requestLibPath: `import request from '@/http/vue-query';\n import { CustomRequestOptions } from '@/http/types';`,
requestOptionsType: 'CustomRequestOptions',
isGenReactQuery: true,
reactQueryMode: 'vue',