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 { // 创建一个符合数据库模式的数据副本