feat: 集成 openapi-ts-request 用于根据 openapi/swagger 生成 ts、uni.request 代码
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import { createSSRApp } from 'vue'
|
||||
import { VueQueryPlugin } from '@tanstack/vue-query'
|
||||
|
||||
import App from './App.vue'
|
||||
import store from './store'
|
||||
import { routeInterceptor, requestInterceptor, prototypeInterceptor } from './interceptors'
|
||||
@@ -11,6 +13,8 @@ export function createApp() {
|
||||
app.use(routeInterceptor)
|
||||
app.use(requestInterceptor)
|
||||
app.use(prototypeInterceptor)
|
||||
app.use(VueQueryPlugin)
|
||||
|
||||
return {
|
||||
app,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user