diff --git a/src/utils/http.js b/src/utils/http.js index e7ae5d1..ade3047 100644 --- a/src/utils/http.js +++ b/src/utils/http.js @@ -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 }