Настроил синхронизацию домена до запроса
This commit is contained in:
parent
1146bf8f3b
commit
bc356f6cfa
@ -41,6 +41,7 @@ export class HttpClient {
|
||||
|
||||
constructor (baseUrl: string) {
|
||||
this.baseUrl = baseUrl
|
||||
this.syncBaseUrlWithStand()
|
||||
}
|
||||
|
||||
async syncBaseUrlWithStand () {
|
||||
@ -52,8 +53,6 @@ export class HttpClient {
|
||||
}
|
||||
|
||||
send (schema: SchemaInterface, data: any | null = null): Promise<AxiosResponse> {
|
||||
this.syncBaseUrlWithStand()
|
||||
|
||||
let url = schema.url
|
||||
const preparedData = data
|
||||
for (const key in data) {
|
||||
|
Loading…
Reference in New Issue
Block a user