Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Neos
Commits
afdee64c
Commit
afdee64c
authored
Jul 30, 2024
by
Chunchi Che
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/duel_end_v3' into 'main'
fix duel end See merge request
!404
parents
2db915cc
69cdbdea
Pipeline
#28792
passed with stages
in 10 minutes and 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/service/duel/start.ts
src/service/duel/start.ts
+7
-0
No files found.
src/service/duel/start.ts
View file @
afdee64c
...
...
@@ -23,6 +23,13 @@ export default async (
// 更新Side状态
context
.
sideStore
.
stage
=
SideStage
.
DUEL_START
;
}
else
{
// 临时添加,防止上局在`EndModal`里面通过判断`conn.isClosed`返回
// Match页了,但是`handleDuelEnd`继续执行,这时候`matStore.duelEnd`是true
//
// 长期修改方案应该是将store通过容器管理起来,每一场对局都是单独的容器实例,
// 这样对局之间就不会互相影响。
context
.
matStore
.
duelEnd
=
false
;
// 通知房间页面决斗开始
// 这行在该函数中的位置不能随便放,否则可能会block住
context
.
roomStore
.
stage
=
RoomStage
.
DUEL_START
;
...
...
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