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.
 
 
 
 
 

38 lignes
741 B

  1. <template>
  2. <div class="battleground" v-if="battleground">
  3. <div>Welcome to {{ battleground.name }}</div>
  4. <Timer initialTime="90"></Timer>
  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. export default {
  12. name: 'Battleground',
  13. data () {
  14. return {
  15. }
  16. },
  17. computed: {
  18. battleground () {
  19. return BATTLEGROUNDS[this.$route.params.battlegroundId]
  20. }
  21. },
  22. watch: {
  23. $route (to) {
  24. this.battlegroundId = to.params.battlegroundId
  25. }
  26. },
  27. components: {
  28. Timer
  29. }
  30. }
  31. </script>
  32. <style lang="sass">
  33. </style>