From db46666bd42381e98d42dfe0e78b882a159c8d31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=88=90?= Date: Mon, 20 Oct 2025 18:44:48 +0800 Subject: [PATCH] 1 --- src/utils/http.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 }