Timers and other features for Heroes of the Storm
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

40 rivejä
811 B

  1. <template>
  2. <div class="battleground" v-if="battleground">
  3. <div>Welcome to {{ battleground.name }}</div>
  4. <Objective></Objective>
  5. <router-link to="/battlegrounds">Back to selector</router-link>
  6. </div>
  7. </template>
  8. <script>
  9. import BATTLEGROUNDS from '../gameInfos/maps'
  10. import Timer from '@/components/Battleground/Timer'
  11. import Objective from '@/components/Battleground/Objective'
  12. export default {
  13. name: 'Battleground',
  14. data () {
  15. return {
  16. }
  17. },
  18. computed: {
  19. battleground () {
  20. return BATTLEGROUNDS[this.$route.params.battlegroundId]
  21. }
  22. },
  23. watch: {
  24. $route (to) {
  25. this.battlegroundId = to.params.battlegroundId
  26. }
  27. },
  28. components: {
  29. Timer,
  30. Objective
  31. }
  32. }
  33. </script>
  34. <style lang="sass">
  35. </style>