fix: route recommend puzzle next through feed

This commit is contained in:
2026-06-07 14:14:16 +08:00
parent e56a25243c
commit 8f460feb41
11 changed files with 84 additions and 126 deletions

View File

@@ -1019,8 +1019,8 @@ function RecommendRuntimeVisual({
}
previousEntryKeyRef.current = activeEntryKey;
setIsRuntimeMounted((currentValue) => {
// 中文注释:拼图推荐流“下一关”会在同一个 run 内切到相似作品
// 此时只更新作品信息和分享基准,不应重显封面造成运行态闪跳。
// 中文注释:推荐运行态已挂载后,用户切换推荐作品只更新作品信息
// 不重显封面,避免已 ready 的运行态视觉闪跳。
if (currentValue && !isStarting && isRuntimeReady) {
return currentValue;
}
@@ -4425,9 +4425,9 @@ export function RpgEntryHomeView({
useEffect(() => {
if (!visibleTabs.includes(activeTab)) {
onTabChange(isAuthenticated ? 'home' : 'category');
onTabChange('home');
}
}, [activeTab, isAuthenticated, onTabChange, visibleTabs]);
}, [activeTab, onTabChange, visibleTabs]);
useEffect(() => {
if (