|
- <template>
- <div class="battleground" v-if="battleground">
- <div>Welcome to {{ battleground.name }}</div>
- <Timer initialTime="90"></Timer>
- <router-link to="/battlegrounds">Back to selector</router-link>
-
- </div>
- </template>
-
- <script>
- import BATTLEGROUNDS from '../gameInfos/maps'
- import Timer from '@/components/Battleground/Timer'
- export default {
- name: 'Battleground',
- data () {
- return {
- }
- },
- computed: {
- battleground () {
- return BATTLEGROUNDS[this.$route.params.battlegroundId]
- }
- },
- watch: {
- $route (to) {
- this.battlegroundId = to.params.battlegroundId
- }
- },
- components: {
- Timer
- }
- }
- </script>
-
- <style lang="sass">
-
- </style>
|