We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cffa70b commit d88d673Copy full SHA for d88d673
src/api-client.ts
@@ -8,9 +8,8 @@ import type { Api } from './api'
8
* @description 用于多账号时,方便管理实例
9
* @param apiConfig API 配置
10
*/
11
-export const ApiClient = (apiConfig: ApiConfig): Api => {
12
- setApiConfig(apiConfig)
13
- return new Proxy(api, {
+export const ApiClient = (apiConfig: ApiConfig): Api =>
+ new Proxy(api, {
14
get(target, prop) {
15
const mods = Reflect.get(target, prop)
16
return new Proxy(mods, {
@@ -23,4 +22,3 @@ export const ApiClient = (apiConfig: ApiConfig): Api => {
23
22
})
24
},
25
26
-}
0 commit comments