refactor: 收口平台阶段失权判定
This commit is contained in:
@@ -532,6 +532,7 @@ import {
|
||||
buildPuzzleResultProfileId,
|
||||
buildPuzzleResultWorkId,
|
||||
} from './platformPuzzleIdentityModel';
|
||||
import { resolveSelectionStageAfterProtectedDataLoss } from './platformSelectionStageModel';
|
||||
import { PlatformTaskCompletionDialog } from './PlatformTaskCompletionDialog';
|
||||
import { PlatformWorkDetailView } from './PlatformWorkDetailView';
|
||||
import { usePlatformCreationAgentFlowController } from './usePlatformCreationAgentFlowController';
|
||||
@@ -6657,24 +6658,10 @@ export function PlatformEntryFlowShellImpl({
|
||||
persistRpgAgentUiState(null, null);
|
||||
resetAutoSaveTrackingToIdle();
|
||||
|
||||
if (
|
||||
selectionStage !== 'platform' &&
|
||||
selectionStage !== 'work-detail' &&
|
||||
selectionStage !== 'detail' &&
|
||||
selectionStage !== 'agent-workspace' &&
|
||||
selectionStage !== 'big-fish-agent-workspace' &&
|
||||
selectionStage !== 'match3d-agent-workspace' &&
|
||||
selectionStage !== 'square-hole-agent-workspace' &&
|
||||
selectionStage !== 'jump-hop-workspace' &&
|
||||
selectionStage !== 'wooden-fish-workspace' &&
|
||||
selectionStage !== 'puzzle-agent-workspace' &&
|
||||
selectionStage !== 'bark-battle-workspace' &&
|
||||
selectionStage !== 'visual-novel-agent-workspace' &&
|
||||
selectionStage !== 'baby-object-match-workspace' &&
|
||||
selectionStage !== 'creative-agent-workspace' &&
|
||||
selectionStage !== 'puzzle-gallery-detail'
|
||||
) {
|
||||
setSelectionStage('platform');
|
||||
const nextSelectionStage =
|
||||
resolveSelectionStageAfterProtectedDataLoss(selectionStage);
|
||||
if (nextSelectionStage !== selectionStage) {
|
||||
setSelectionStage(nextSelectionStage);
|
||||
}
|
||||
}, [
|
||||
authUi?.user,
|
||||
|
||||
Reference in New Issue
Block a user