This commit is contained in:
ChiKyun Kim
2025-11-11 08:39:59 +09:00
parent a966b4a6ab
commit e6a39d52e9
15 changed files with 60 additions and 128 deletions

View File

@@ -31,7 +31,7 @@ function CommonCode() {
const loadGroups = async () => {
setIsLoading(true);
try {
const response = await fetch('http://127.0.0.1:7979/Common/GetGroups');
const response = await fetch('/Common/GetGroups');
const data = await response.json();
setGroupData(data || []);
} catch (error) {
@@ -53,7 +53,7 @@ function CommonCode() {
const loadDataByGroup = async (grp) => {
setIsLoading(true);
try {
let url = 'http://127.0.0.1:7979/Common/GetList';
let url = '/Common/GetList';
if (grp) {
url += '?grp=' + encodeURIComponent(grp);
}
@@ -130,7 +130,7 @@ function CommonCode() {
setIsLoading(true);
try {
const response = await fetch('http://127.0.0.1:7979/Common/Save', {
const response = await fetch('/Common/Save', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
@@ -162,7 +162,7 @@ function CommonCode() {
setIsLoading(true);
try {
const response = await fetch('http://127.0.0.1:7979/Common/Delete', {
const response = await fetch('/Common/Delete', {
method: 'POST',
headers: {
'Content-Type': 'application/json',