fix:iframe切换颜色
This commit is contained in:
1 parent
5436719bfb
commit
59f2f56124
3 files changed
+32
-3
No files matched your search
@@ -61,7 +61,10 @@ function AppProviders({ children }: { children: React.ReactNode }) {
|
||||
// 走 next-themes forcedTheme(不写 localStorage)→ 同浏览器另开的正常系统页不受影响。
|
||||
const embedTheme = resolveForcedEmbedTheme(location.search);
|
||||
if (embedTheme) return embedTheme;
|
||||
const routeTheme = resolveForcedThemeForPath(location.pathname);
|
||||
const routeTheme = resolveForcedThemeForPath(
|
||||
location.pathname,
|
||||
location.search,
|
||||
);
|
||||
if (routeTheme) return routeTheme;
|
||||
if (location.pathname === "/embed/roundtable") {
|
||||
const wp = readWujieProps();
|
||||
|
||||
Reference in new issue
Block a user