From d6b249b909726bf34383fec7239f90a4e4d343d3 Mon Sep 17 00:00:00 2001 From: zhinianboke <115088296+zhinianboke@users.noreply.github.com> Date: Tue, 29 Jul 2025 08:45:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/item_search.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/item_search.html b/static/item_search.html index 0ac9e6b..cff7c1f 100644 --- a/static/item_search.html +++ b/static/item_search.html @@ -215,7 +215,7 @@ let currentPageSize = 20; // 前端分页每页显示数量 let totalResults = 0; let authToken = localStorage.getItem('auth_token'); - const apiBase = 'http://localhost:8080'; + const apiBase = location.origin; // HTML转义函数(全局函数) function escapeHtml(text) {