Timers and other features for Heroes of the Storm
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 

40 lignes
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>