From 35b0f20178f14555f77f291e96e8e33c4082b2ff Mon Sep 17 00:00:00 2001 From: awen Date: Thu, 10 Apr 2025 10:54:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E4=B8=BA=E5=86=85=E7=BD=91ip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/routes/rules.new.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/routes/rules.new.tsx b/app/routes/rules.new.tsx index f024a16..4731500 100644 --- a/app/routes/rules.new.tsx +++ b/app/routes/rules.new.tsx @@ -235,7 +235,7 @@ export default function RuleNew() { try { setIsLoading(true); console.log(`获取评查点数据,ID: ${id}`); - const response = await fetch(`http://127.0.0.1:9000/admin/evaluation_points?id=eq.${id}`, { + const response = await fetch(`http://172.16.0.119:9000/admin/evaluation_points?id=eq.${id}`, { method: 'GET', headers: { 'Accept': 'application/json', @@ -281,7 +281,7 @@ export default function RuleNew() { const fetchEvaluationPointGroups = useCallback(async () => { try { console.log("获取评查点组数据"); - const response = await fetch("http://127.0.0.1:9000/admin/evaluation_point_groups", { + const response = await fetch("http://172.16.0.119:9000/admin/evaluation_point_groups", { method: 'GET', headers: { 'Accept': 'application/json', @@ -320,8 +320,8 @@ export default function RuleNew() { // 根据模式决定是创建还是更新 const apiMethod = isEditMode ? 'PATCH' : 'POST'; const apiUrl = isEditMode - ? `http://127.0.0.1:9000/admin/evaluation_points?id=eq.${formData.id}` - : 'http://127.0.0.1:9000/admin/evaluation_points'; + ? `http://172.16.0.119:9000/admin/evaluation_points?id=eq.${formData.id}` + : 'http://172.16.0.119:9000/admin/evaluation_points'; try { // 创建一个符合数据库模式的数据副本