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