From 3c57a28edde9d979c27432f5b2de07ee275759ba Mon Sep 17 00:00:00 2001 From: Macbook Date: Sun, 12 Jul 2026 05:37:13 +0900 Subject: [PATCH] =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/bizcare/agent/SecurityConfig.java | 4 +++ backend/src/main/resources/application.yml | 2 +- docker-compose.yml | 2 +- frontend/src/components/AgentShell.tsx | 5 ++-- frontend/src/pages/care/ReceptionListPage.tsx | 27 +++++++++++++++++-- frontend/src/styles/app.css | 15 +++++++++++ 6 files changed, 49 insertions(+), 6 deletions(-) diff --git a/backend/src/main/java/com/bizcare/agent/SecurityConfig.java b/backend/src/main/java/com/bizcare/agent/SecurityConfig.java index c46e7f8..3d23572 100644 --- a/backend/src/main/java/com/bizcare/agent/SecurityConfig.java +++ b/backend/src/main/java/com/bizcare/agent/SecurityConfig.java @@ -72,6 +72,10 @@ class SecurityConfig { patterns.add("http://127.0.0.1:*"); patterns.add("http://192.168.*.*:*"); patterns.add("http://10.*.*.*:*"); + patterns.add("tauri://localhost"); + patterns.add("tauri://*"); + patterns.add("https://tauri.localhost"); + patterns.add("http://tauri.localhost"); c.setAllowedOriginPatterns(patterns); } c.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS")); diff --git a/backend/src/main/resources/application.yml b/backend/src/main/resources/application.yml index ef0ef64..7ea3c41 100644 --- a/backend/src/main/resources/application.yml +++ b/backend/src/main/resources/application.yml @@ -26,5 +26,5 @@ app: secret: ${APP_JWT_SECRET:billcare-bizcare-homes-secret-key-must-be-long-enough-256bits} expiration-ms: ${APP_JWT_EXPIRATION_MS:86400000} cors: - origins: ${APP_CORS_ORIGINS:http://localhost:5174,http://localhost:82,http://127.0.0.1:82} + origins: ${APP_CORS_ORIGINS:http://localhost:5174,http://localhost:82,http://127.0.0.1:82,http://localhost:1420,https://billcare.exdev.co.kr,tauri://localhost,https://tauri.localhost,http://tauri.localhost} upload-dir: ${APP_UPLOAD_DIR:./storage/uploads} diff --git a/docker-compose.yml b/docker-compose.yml index 1cf94bf..9009ede 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -33,7 +33,7 @@ services: SPRING_DATASOURCE_URL: jdbc:mysql://mysql:3306/billcare?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Seoul&characterEncoding=UTF-8 SPRING_DATASOURCE_USERNAME: billcare SPRING_DATASOURCE_PASSWORD: billcare - APP_CORS_ORIGINS: ${APP_CORS_ORIGINS:-http://localhost:82,http://127.0.0.1:82,http://localhost:5174,https://billcare.exdev.co.kr} + APP_CORS_ORIGINS: ${APP_CORS_ORIGINS:-http://localhost:82,http://127.0.0.1:82,http://localhost:5174,http://localhost:1420,https://billcare.exdev.co.kr,tauri://localhost,https://tauri.localhost,http://tauri.localhost} APP_UPLOAD_DIR: /app/storage/uploads volumes: - billcare_uploads:/app/storage/uploads diff --git a/frontend/src/components/AgentShell.tsx b/frontend/src/components/AgentShell.tsx index a4e52d5..bf5bb79 100644 --- a/frontend/src/components/AgentShell.tsx +++ b/frontend/src/components/AgentShell.tsx @@ -83,8 +83,9 @@ export default function AgentShell({ shop = false }: Props) { setOpenCards((prev) => { const next = { ...prev } sections.forEach((sec) => { + // 기본은 접힘. 현재 경로가 속한 섹션만 펼침 if (next[sec.id] === undefined) { - next[sec.id] = sectionContainsPath(sec, location.pathname) || sec.items.length <= 1 + next[sec.id] = sectionContainsPath(sec, location.pathname) } if (sectionContainsPath(sec, location.pathname)) next[sec.id] = true }) @@ -201,7 +202,7 @@ export default function AgentShell({ shop = false }: Props) { {!collapsed && (