하석형 하석형 06-02
250602 하석형 초기 요청 데이터 contextPath 제외 목록 포함
@7edac16a365787b36b7e3feefd70979f8c892ffe
client/resources/api/index.js
--- client/resources/api/index.js
+++ client/resources/api/index.js
@@ -11,6 +11,8 @@
 
 const excludeCtxUrls = [
   '/sys/cntxtPth/findLatestCntxtPth.json' // Context Path 정보 호출
+  , '/sys/loginPolicy/getLoginMode.json' // 로그인 모드 정보 호출
+  , '/sys/loginPolicy/findByStorageMode.json' // 스토리지 모드 정보 호출
 ]
 
 apiClient.interceptors.request.use(
@@ -18,7 +20,6 @@
     const store = getGlobalStore(); // 전역 스토어 가져오기
     const excludeCtxUrl = excludeCtxUrls.some(url => config.url.includes(url));
     const contextPath = store?.state.contextPath || '';
-    console.log("Context Path:", contextPath);
     if(!excludeCtxUrl) {
       config.url = contextPath + config.url; // 요청 시 Context Path 추가
     }
client/views/index.js
--- client/views/index.js
+++ client/views/index.js
@@ -25,9 +25,6 @@
   const ctx = await contextPath();
   const strgMode = await storageMode();
   const lgnMode = await loginMode();
-  console.log("Context Path:", ctx);
-  console.log("Storage Mode:", strgMode);
-  console.log("Login Mode:", lgnMode);
 
   const store = createAppStore(ctx, strgMode, lgnMode);
 
Add a comment
List