Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RB-studyChina-20250617
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
RB-studyChina-20250617
Commits
b4e96440
Commit
b4e96440
authored
Jun 24, 2025
by
jtwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
6955c7e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
index.jsx
src/panels/FailPopup/index.jsx
+9
-9
No files found.
src/panels/FailPopup/index.jsx
View file @
b4e96440
...
...
@@ -30,16 +30,16 @@ class FailPopup extends React.Component {
//再玩一次
onReceive
=
()
=>
{
ModalCtrl
.
closeModal
();
//
PageCtrl.changePage(HomePage);//回到首页
PageCtrl
.
changePage
(
HomePage
);
//回到首页
//重玩游戏
if
(
store
.
game
)
{
const
d
=
{
targetStudy
:
gameStore
.
gameInfo
.
targetConfig
.
target1
,
targetTravel
:
gameStore
.
gameInfo
.
targetConfig
.
target2
,
time
:
gameStore
.
gameInfo
.
countdownSeconds
}
store
.
game
.
dispatchGlobalEvent
(
"restartGame"
,
d
)
}
//
if (store.game) {
//
const d = {
//
targetStudy: gameStore.gameInfo.targetConfig.target1,
//
targetTravel: gameStore.gameInfo.targetConfig.target2,
//
time: gameStore.gameInfo.countdownSeconds
//
}
//
store.game.dispatchGlobalEvent("restartGame", d)
//
}
}
render
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment