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',