Commit 88820eef authored by xiaoye's avatar xiaoye

Update tournament.vue

parent 6656653b
<template> <template>
<view class = 'PageTournament'> <view class = 'PageTournament'>
<!-- <Drag v-model = 'participant.array'></Drag> -->
<transition name = 'switch'> <transition name = 'switch'>
<uni-card <uni-card
id = 'PageTournament' id = 'PageTournament'
...@@ -293,7 +292,6 @@ ...@@ -293,7 +292,6 @@
import Const from '../script/const.ts' import Const from '../script/const.ts'
import Mycard from '../script/mycard.ts'; import Mycard from '../script/mycard.ts';
import {TournamentCreateObject, MatchUpdateObject, TournamentAParticipant, ParticipantUpdateObject} from '../script/type.ts' import {TournamentCreateObject, MatchUpdateObject, TournamentAParticipant, ParticipantUpdateObject} from '../script/type.ts'
import Drag from '../script/drag/drag-list.vue';
let tournament = reactive({ let tournament = reactive({
this : undefined as undefined | Tournament, this : undefined as undefined | Tournament,
status : { status : {
...@@ -644,7 +642,6 @@ ...@@ -644,7 +642,6 @@
match.submit.chk = match.array.map(i => [i.player1Score ?? 0, i.player2Score ?? 0]); match.submit.chk = match.array.map(i => [i.player1Score ?? 0, i.player2Score ?? 0]);
match.maxRound = match.array.find(i => i.isThirdPlaceMatch)?.round ?? match.round + 1; match.maxRound = match.array.find(i => i.isThirdPlaceMatch)?.round ?? match.round + 1;
}, {deep : true}); }, {deep : true});
</script> </script>
<style scoped lang = 'scss'> <style scoped lang = 'scss'>
......
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