Add platform generation dialogs and task refresh

This commit is contained in:
kdletters
2026-05-26 19:40:23 +08:00
parent abea7cec1d
commit 4001ee0a5c
4 changed files with 58 additions and 10 deletions

View File

@@ -216,6 +216,7 @@ export interface RpgEntryHomeViewProps {
onOpenPlayedWork?: (work: ProfilePlayedWorkSummary) => void;
onOpenFeedback?: () => void;
onRechargeSuccess?: () => void | Promise<void>;
profileTaskRefreshKey?: number;
createTabContent?: ReactNode;
draftTabContent?: ReactNode;
hasUnreadDraftUpdate?: boolean;
@@ -3983,6 +3984,7 @@ export function RpgEntryHomeView({
onOpenPlayedWork,
onOpenFeedback,
onRechargeSuccess,
profileTaskRefreshKey = 0,
createTabContent,
draftTabContent,
hasUnreadDraftUpdate = false,
@@ -4798,7 +4800,7 @@ export function RpgEntryHomeView({
}
loadTaskCenter();
}, [activeTab, isAuthenticated, loadTaskCenter]);
}, [activeTab, isAuthenticated, loadTaskCenter, profileTaskRefreshKey]);
const openTaskCenterPanel = () => {
setIsTaskCenterOpen(true);