diff --git a/html/index.html b/html/index.html index 34f31a5..a448f78 100644 --- a/html/index.html +++ b/html/index.html @@ -27,6 +27,12 @@
+
+
+

暂未做登录验证,使用DDNS等方式外网访问存在风险!!!

+

服务器地址:{{ server_url }}

+
+
@@ -121,8 +127,9 @@ new Vue({ el: "#app", data() { + let server_url = document.location.hostname == '' ? 'http://localhost:5750' : `http://${document.location.hostname}:5750`; const ajax = axios.create({ - baseURL: document.location.hostname == '' ? 'http://localhost:5750' : `http://${document.location.hostname}:5750`, + baseURL: server_url, timeout: 20000, headers: { 'Content-Type': 'application/x-www-form-urlencoded', @@ -130,6 +137,7 @@ } }); return { + server_url: server_url, keywords: '', is_searching: false, sources: [],