Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5d0abd6

Browse files
committed
load next step
1 parent893eca7 commit5d0abd6

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

‎src/state/actions/index.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,18 @@ export default {
164164
returnnextProgress
165165
}
166166
}),
167-
stepLoadNext(){
168-
console.log("LOAD NEXT STEP")
169-
},
167+
stepLoadNext:assign({
168+
position:(context:any)=>{
169+
const{ data, position}=context
170+
const{ stepList}=data.stages[position.stageId]
171+
constcurrentStepIndex=stepList.indexOf(position.stepId)
172+
constnextStepId=stepList[currentStepIndex+1]
173+
return{
174+
...context.position,
175+
stepId:nextStepId,
176+
}
177+
}
178+
}),
170179
loadLevel(){
171180
console.log('loadLevel')
172181
},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp