From 37203a196494268f60942bdfbca56bdf17b40e0c Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 8 Mar 2026 21:57:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E6=B8=B2=E6=9F=93?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index b98a4e4..19cffad 100644 --- a/index.html +++ b/index.html @@ -428,7 +428,9 @@ }); } - fetch('api.config.json').catch(function() { return { json: function() { return Promise.resolve({ apiBase: '' }); }; }; }) + fetch('api.config.json').catch(function() { + return { json: function() { return Promise.resolve({ apiBase: '' }); } }; + }) .then(function(r) { return typeof r.json === 'function' ? r.json() : Promise.resolve({ apiBase: '' }); }) .then(function(apiConfig) { API = (apiConfig.apiBase || '').replace(/\/$/, '') + '/api';