Disable turbo client navigation to fix broken page layouts.

Turbo swapping broke page CSS/JS across stats, settings, market, and trade. Restore full page loads; keep external base.css and link prefetch.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-26 22:05:04 +08:00
parent 9613fb0737
commit fd49b08c08
7 changed files with 15 additions and 292 deletions
+8 -4
View File
@@ -1664,9 +1664,13 @@
}
});
if (window.qihuoPageBoot) window.qihuoPageBoot(bootTradePage, '.trade-page');
else if (window.qihuoOnPageLoad) window.qihuoOnPageLoad(bootTradePage);
else bootTradePage();
if (window.qihuoOnPageLeave) window.qihuoOnPageLeave(cleanupTradePage);
function startTradePage() {
if (!document.querySelector('.trade-page')) return;
bootTradePage();
}
if (window.qihuoPageBoot) window.qihuoPageBoot(startTradePage, '.trade-page');
else if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', startTradePage);
else startTradePage();
window.addEventListener('pagehide', cleanupTradePage);
})();