1
This commit is contained in:
@@ -4,15 +4,13 @@ import { formatDate } from './tools'
|
|||||||
|
|
||||||
class Http {
|
class Http {
|
||||||
constructor() {
|
constructor() {
|
||||||
this.config = {
|
this.config = {}
|
||||||
apiUrl: '',
|
|
||||||
timeout: 300000
|
|
||||||
}
|
|
||||||
this.store = null
|
this.store = null
|
||||||
}
|
}
|
||||||
|
|
||||||
init(config, store) {
|
init(config, store) {
|
||||||
this.config = { ...this.config, ...config }
|
this.config = { timeout: 300000, ...config }
|
||||||
this.store = store
|
this.store = store
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user