0
0

fix: API改回相对路径,IPv6 ban已从HA侧关闭

This commit is contained in:
xiaoou
2026-07-10 14:28:40 +08:00
parent 718d709c09
commit b183f1c9f9

View File

@ -93,7 +93,7 @@ input:focus { border-color: #1371FF; }
</div> </div>
<script> <script>
var API = 'http://127.0.0.1:8123'; // 强制 IPv4 避免 ::1 被 ban var API = ''; // 相对路径走同源127.0.0.1 / localhost / 公网 / 隧道均可用)
var token = localStorage.getItem('pxh_token'); var token = localStorage.getItem('pxh_token');
async function api(method, path, body) { async function api(method, path, body) {