更换为内网ip
This commit is contained in:
@@ -235,7 +235,7 @@ export default function RuleNew() {
|
|||||||
try {
|
try {
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
console.log(`获取评查点数据,ID: ${id}`);
|
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',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
'Accept': 'application/json',
|
'Accept': 'application/json',
|
||||||
@@ -281,7 +281,7 @@ export default function RuleNew() {
|
|||||||
const fetchEvaluationPointGroups = useCallback(async () => {
|
const fetchEvaluationPointGroups = useCallback(async () => {
|
||||||
try {
|
try {
|
||||||
console.log("获取评查点组数据");
|
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',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
'Accept': 'application/json',
|
'Accept': 'application/json',
|
||||||
@@ -320,8 +320,8 @@ export default function RuleNew() {
|
|||||||
// 根据模式决定是创建还是更新
|
// 根据模式决定是创建还是更新
|
||||||
const apiMethod = isEditMode ? 'PATCH' : 'POST';
|
const apiMethod = isEditMode ? 'PATCH' : 'POST';
|
||||||
const apiUrl = isEditMode
|
const apiUrl = isEditMode
|
||||||
? `http://127.0.0.1:9000/admin/evaluation_points?id=eq.${formData.id}`
|
? `http://172.16.0.119: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';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// 创建一个符合数据库模式的数据副本
|
// 创建一个符合数据库模式的数据副本
|
||||||
|
|||||||
Reference in New Issue
Block a user