blob: 888d6d50e3fa63a8d230c02c4112126d65edf028 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
<template>
<b-tabs v-model="tabIndex" expanded type="is-toggle" >
<b-tab-item label="Blitz">
<blitz-tab :reportService="reportService"></blitz-tab>
</b-tab-item>
<b-tab-item label="Battle Royale">
<battle-royale-tab :reportService="reportService"></battle-royale-tab>
</b-tab-item>
</b-tabs>
</div>
</template>
<script>
import Vue from 'vue';
import BlitzTab from './BlitzTab.vue';
import BattleRoyaleTab from './BattleRoyaleTab.vue';
import ReportService from './report-service.js';
export default Vue.component('home', {
props: [ 'reportService' ],
data: function() {
return {
};
},
computed: {
tabIndex: {
get: function() {
return this.$route.query.tab;
},
set: function(value) {
this.$router.push({ query: { tab: value }});
},
},
},
components: {
BlitzTab,
BattleRoyaleTab,
},
});
</script>
|