Просмотр исходного кода

fix: 请求拦截器 路径错误。

feige996 9 месяцев назад
Родитель
Сommit
d65376ae84
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      openapi-ts-request.config.ts

+ 1 - 1
openapi-ts-request.config.ts

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