From 7e631cfa1b1895769060e196f4a7a2539ff10fcc Mon Sep 17 00:00:00 2001 From: Stringadmin Date: Wed, 3 Jun 2026 23:25:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=94=B5=E5=95=86=E9=A1=B5=E9=9D=A2=20K?= =?UTF-8?q?eepAlive=20=E5=AE=B9=E5=99=A8=E4=BD=BF=E7=94=A8=E7=BB=9D?= =?UTF-8?q?=E5=AF=B9=E5=AE=9A=E4=BD=8D=E9=93=BA=E6=BB=A1=E8=A7=86=E5=8F=A3?= =?UTF-8?q?=EF=BC=8C=E8=A7=A3=E5=86=B3=E5=BA=95=E9=83=A8=E7=95=99=E7=99=BD?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- src/App.tsx | 16 +++++++++------- src/styles/shell/app-shell.css | 8 ++++++++ 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 7a9dee5..8def355 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1234,10 +1234,13 @@ function App() { {activePage} + + - {/* KeepAlive: EcommercePage stays mounted once visited */} - {ecommerceEverMounted && ( -
+ {/* KeepAlive: EcommercePage stays mounted once visited, hidden via display:none */} + {ecommerceEverMounted && ( +
+ setPendingEcommerceTemplate(null)} /> -
- )} - - + +
+ )} {loginPromptOpen && pendingAction ? (
diff --git a/src/styles/shell/app-shell.css b/src/styles/shell/app-shell.css index 5f7dd13..d8519d9 100644 --- a/src/styles/shell/app-shell.css +++ b/src/styles/shell/app-shell.css @@ -559,12 +559,20 @@ } .web-shell__page { + position: relative; flex: 1; min-height: 0; overflow: auto; scrollbar-color: rgba(var(--accent-rgb), 0.42) transparent; } +.keepalive-ecommerce { + position: absolute; + inset: 0; + z-index: 1; + overflow: hidden; +} + /* ── Info button & popover ────────────────────── */ .info-button { display: inline-grid;