Fix for tab-elements fetching
This commit is contained in:
@@ -183,9 +183,16 @@ export default {
|
||||
},
|
||||
beforeDestroy() {
|
||||
this.setWinnerdataToStorage();
|
||||
eventBus.$off("tab-change", () => {
|
||||
this.fetchColorsAndWinners();
|
||||
});
|
||||
},
|
||||
mounted() {
|
||||
this.fetchColorsAndWinners();
|
||||
|
||||
eventBus.$on("tab-change", () => {
|
||||
this.fetchColorsAndWinners();
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
stringify(json) {
|
||||
|
||||
@@ -111,6 +111,7 @@
|
||||
|
||||
<script>
|
||||
import io from "socket.io-client";
|
||||
import eventBus from "@/mixins/EventBus";
|
||||
import {
|
||||
addAttendee,
|
||||
getVirtualWinner,
|
||||
|
||||
Reference in New Issue
Block a user