Commit ab2c1ec2 authored by xiaoye's avatar xiaoye

Update tournament.vue

parent 81c04526
...@@ -539,13 +539,13 @@ ...@@ -539,13 +539,13 @@
url && !isNaN(parseInt(url[1])) ? page.get() : page.clear(); url && !isNaN(parseInt(url[1])) ? page.get() : page.clear();
document.addEventListener("click", page.clickClear); document.addEventListener("click", page.clickClear);
// @ts-ignore // @ts-ignore
emitter.on(updateTournament, participant.update); emitter.on(Const.updateTournament, participant.update);
}); });
onUnmounted(() => { onUnmounted(() => {
document.removeEventListener("click", page.clickClear); document.removeEventListener("click", page.clickClear);
// @ts-ignore // @ts-ignore
emitter.off(updateTournament, participant.update); emitter.off(Const.updateTournament, participant.update);
}); });
watch(() => { return match.round; }, async () : Promise<void> => { watch(() => { return match.round; }, async () : Promise<void> => {
......
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