1
This commit is contained in:
@@ -10,7 +10,7 @@ class Http {
|
|||||||
}
|
}
|
||||||
|
|
||||||
init(config, store) {
|
init(config, store) {
|
||||||
console.log('config', config)
|
|
||||||
this.config = { timeout: 300000, ...config }
|
this.config = { timeout: 300000, ...config }
|
||||||
this.store = store
|
this.store = store
|
||||||
}
|
}
|
||||||
@@ -24,6 +24,8 @@ class Http {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getHttpInstance(config) {
|
getHttpInstance(config) {
|
||||||
|
|
||||||
|
console.log('getHttpInstance', this.baseUrl())
|
||||||
let defaultConfig = {
|
let defaultConfig = {
|
||||||
timeout: this.config.timeout,
|
timeout: this.config.timeout,
|
||||||
headers: {},
|
headers: {},
|
||||||
|
|||||||
Reference in New Issue
Block a user