feat: 포트 충돌 방지 - 자동 포트 탐색 및 상대 경로 적용
백엔드 변경사항: - fMain.cs: 포트 7979~8000 범위에서 자동 탐색 및 fallback 기능 추가 - 성공한 포트를 Pub.WebServiceURL에 자동 저장 - 포트 충돌 시 자동으로 다음 포트 시도 프론트엔드 변경사항: - login.html: 하드코딩 URL 3곳을 상대 경로로 변경 - Common.html: 하드코딩 URL 4곳을 상대 경로로 변경 - DashBoard/index.html: 하드코딩 URL 10곳을 상대 경로로 변경 효과: - 포트 충돌 시 사용자 개입 없이 자동 해결 - 포트 변경에 무관하게 프론트엔드 자동 동작 - 다양한 환경에서 안정적인 서비스 제공 🤖 Generated with Claude Code (https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -684,7 +684,7 @@
|
||||
// 휴가 인원 Ajax 업데이트
|
||||
function updateLeaveCount() {
|
||||
showLoading();
|
||||
fetch('http://127.0.0.1:7979/DashBoard/TodayCountH')
|
||||
fetch('/DashBoard/TodayCountH')
|
||||
.then(response => response.text())
|
||||
.then(data => {
|
||||
const cleanData = data.replace(/"/g, '');
|
||||
@@ -701,7 +701,7 @@
|
||||
// 휴가자 목록 Ajax 업데이트
|
||||
function updateHolidayList() {
|
||||
showLoading();
|
||||
fetch('http://127.0.0.1:7979/DashBoard/GetholyUser')
|
||||
fetch('/DashBoard/GetholyUser')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
let tableRows = '';
|
||||
@@ -780,7 +780,7 @@
|
||||
// 구매요청 데이터 Ajax 업데이트
|
||||
function updatePurchaseCount() {
|
||||
showLoading();
|
||||
fetch('http://127.0.0.1:7979/DashBoard/GetPurchaseWaitCount')
|
||||
fetch('/DashBoard/GetPurchaseWaitCount')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
if (data) {
|
||||
@@ -805,7 +805,7 @@
|
||||
// 휴가요청 데이터 Ajax 업데이트
|
||||
function updateHolydayRequestCount() {
|
||||
showLoading();
|
||||
fetch('http://127.0.0.1:7979/DashBoard/GetHolydayRequestCount')
|
||||
fetch('/DashBoard/GetHolydayRequestCount')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
if (data) {
|
||||
@@ -825,7 +825,7 @@
|
||||
// 사용자카운트 데이터 Ajax 업데이트
|
||||
function updateCurrentUserCount() {
|
||||
showLoading();
|
||||
fetch('http://127.0.0.1:7979/DashBoard/GetCurrentUserCount')
|
||||
fetch('/DashBoard/GetCurrentUserCount')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
if (data) {
|
||||
@@ -872,7 +872,7 @@
|
||||
// Todo 목록 Ajax 업데이트
|
||||
function updateTodoList() {
|
||||
showLoading();
|
||||
fetch('http://127.0.0.1:7979/Todo/GetUrgentTodos')
|
||||
fetch('/Todo/GetUrgentTodos')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
if (data.Success && data.Data) {
|
||||
@@ -1288,7 +1288,7 @@
|
||||
// 출근 대상자 목록 로드
|
||||
function loadPresentUserList() {
|
||||
showLoading();
|
||||
fetch('http://127.0.0.1:7979/DashBoard/GetPresentUserList')
|
||||
fetch('/DashBoard/GetPresentUserList')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
let tableRows = '';
|
||||
@@ -1373,7 +1373,7 @@
|
||||
// 휴가요청 목록 로드
|
||||
function loadHolidayRequestList() {
|
||||
showLoading();
|
||||
fetch('http://127.0.0.1:7979/DashBoard/GetholyRequestUser')
|
||||
fetch('/DashBoard/GetholyRequestUser')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
let tableRows = '';
|
||||
@@ -1463,7 +1463,7 @@
|
||||
// 구매NR 목록 로드
|
||||
function loadPurchaseNRList() {
|
||||
showLoading();
|
||||
fetch('http://127.0.0.1:7979/DashBoard/GetPurchaseNRList')
|
||||
fetch('/DashBoard/GetPurchaseNRList')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
let tableRows = '';
|
||||
@@ -1538,7 +1538,7 @@
|
||||
// 구매CR 목록 로드
|
||||
function loadPurchaseCRList() {
|
||||
showLoading();
|
||||
fetch('http://127.0.0.1:7979/DashBoard/GetPurchaseCRList')
|
||||
fetch('/DashBoard/GetPurchaseCRList')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
let tableRows = '';
|
||||
|
||||
Reference in New Issue
Block a user