Timers and other features for Heroes of the Storm
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 

38 řádky
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>