From fc5c2a627d8590d7ad1a9be9b9756a753a3e4f0d Mon Sep 17 00:00:00 2001 From: hyunho Date: Wed, 25 Mar 2026 12:54:31 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A1=B0=EC=A7=81=20=ED=98=84=ED=99=A9=20?= =?UTF-8?q?=ED=83=AD=20=EB=B3=B5=EA=B7=80=20=EB=8F=99=EC=9E=91=20=EB=B3=B4?= =?UTF-8?q?=EA=B0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/public/app.js | 7 +++++++ frontend/public/index.html | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/public/app.js b/frontend/public/app.js index f4f238e..597543f 100755 --- a/frontend/public/app.js +++ b/frontend/public/app.js @@ -9,6 +9,7 @@ const userBadge = document.getElementById("user-badge"); const currentViewTitle = document.getElementById("current-view-title"); const navButtons = Array.from(document.querySelectorAll(".header-center [data-view]")); const stages = Array.from(document.querySelectorAll(".main-stage[data-stage]")); +const organizationFrame = document.getElementById("organization-frame"); const viewLabels = { ledger: "사업관리대장", @@ -36,6 +37,7 @@ function clearSession() { } function setActiveView(view) { + const previousView = currentView; currentView = view in viewLabels ? view : "organization"; if (currentViewTitle) { currentViewTitle.textContent = viewLabels[currentView]; @@ -48,6 +50,11 @@ function setActiveView(view) { stages.forEach((stage) => { stage.hidden = stage.dataset.stage !== currentView; }); + + if (currentView === "organization" && previousView !== "organization" && organizationFrame) { + const frameSrc = organizationFrame.dataset.src || organizationFrame.src; + organizationFrame.src = frameSrc; + } } function renderAuth() { diff --git a/frontend/public/index.html b/frontend/public/index.html index fb5115a..e8f42b6 100644 --- a/frontend/public/index.html +++ b/frontend/public/index.html @@ -75,7 +75,7 @@
- +