From 471a2ae0c2c9a8b53cbae53742c4a12014df3920 Mon Sep 17 00:00:00 2001 From: amuliang <982632988@qq.com> Date: Sat, 5 Aug 2023 16:24:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9C=8D=E5=8A=A1=E5=99=A8?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E9=80=89=E6=8B=A9=E9=94=99=E8=AF=AF=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- html/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/index.html b/html/index.html index 96250a6..34f31a5 100644 --- a/html/index.html +++ b/html/index.html @@ -122,7 +122,7 @@ el: "#app", data() { const ajax = axios.create({ - baseURL: document.location.href.indexOf('localhost') >= 0 ? 'http://localhost:5750' : 'http://musicdlr.amuliang.top:5750', + baseURL: document.location.hostname == '' ? 'http://localhost:5750' : `http://${document.location.hostname}:5750`, timeout: 20000, headers: { 'Content-Type': 'application/x-www-form-urlencoded',