Commit 32858340 authored by hewenhao's avatar hewenhao

feat: 第二关如果是奖励关卡就不显示PK引导

parent 2699adf1
...@@ -155,7 +155,12 @@ const StageComp = (props: StageProps) => { ...@@ -155,7 +155,12 @@ const StageComp = (props: StageProps) => {
const updateGuideState = useStoreActions(state => state.guideModel.updateState) const updateGuideState = useStoreActions(state => state.guideModel.updateState)
const pkDetails = useStoreState(state => state.userModel.pkDetails) const pkDetails = useStoreState(state => state.userModel.pkDetails)
const isSpecialRound = useMemo(() => {
return stage.type === StageType.Special
}, [stage])
const isPkGuideShow = useMemo(() => { const isPkGuideShow = useMemo(() => {
if (isSpecialRound) return false
const force = pkGuideStep === 2 && pkGuideActive && stage.$stageIndex === 1 const force = pkGuideStep === 2 && pkGuideActive && stage.$stageIndex === 1
if (force) { if (force) {
return force return force
...@@ -164,11 +169,7 @@ const StageComp = (props: StageProps) => { ...@@ -164,11 +169,7 @@ const StageComp = (props: StageProps) => {
if (stage.$lastPassedStage) { if (stage.$lastPassedStage) {
return showPkGuideFromHis return showPkGuideFromHis
} }
}, [pkGuideActive, pkGuideStep, stage, showPkGuideFromHis]) }, [pkGuideActive, pkGuideStep, stage, showPkGuideFromHis, isSpecialRound])
const isSpecialRound = useMemo(() => {
return stage.type === StageType.Special
}, [stage])
const handleClick = () => { const handleClick = () => {
if (stage.status !== StageStatus.DISABLED || !isProduction) { if (stage.status !== StageStatus.DISABLED || !isProduction) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment