Commit 9248e02a authored by xiaoye's avatar xiaoye

Update tournament.vue

parent 88820eef
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
v-show = '!i.quit' v-show = '!i.quit'
@click = 'tournament.operatorChk(participant.move.start, [i, $event])' @click = 'tournament.operatorChk(participant.move.start, [i, $event])'
> >
<uni-icons type = 'settings'></uni-icons> <uni-icons :type = "participant.move.this && participant.move.this !== i ? 'pulldown' : 'list'"></uni-icons>
</view> </view>
<view <view
class = 'button' class = 'button'
...@@ -539,6 +539,10 @@ ...@@ -539,6 +539,10 @@
participant.move.this = i; participant.move.this = i;
}; };
const end = async () : Promise<void> => { const end = async () : Promise<void> => {
if (participant.move.this === i) {
participant.move.this = undefined;
return;
}
const v1 = participant.array.findIndex(p => { return p === i; }); const v1 = participant.array.findIndex(p => { return p === i; });
const v2 = participant.array.findIndex(p => { return p === participant.move.this; }); const v2 = participant.array.findIndex(p => { return p === participant.move.this; });
// const p = participant.array[v1]; // const p = participant.array[v1];
......
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