This commit is contained in:
张成
2025-10-20 18:44:48 +08:00
parent d79a272f50
commit db46666bd4

View File

@@ -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
} }