home.vue 528 B

12345678910111213141516171819202122
  1. <script setup>
  2. import store from "../js/store";
  3. setInterval(function() {
  4. console.log("store", store)
  5. store.dispatch('cambia', { base: 10 });
  6. return true;
  7. }, 4000)
  8. </script>
  9. <template>
  10. <f7-page name="home">
  11. <!-- Page content-->
  12. <f7-block-title>Radio</f7-block-title>
  13. <f7-list>
  14. <f7-list-item
  15. v-for="(radio, url) in store.getters.radios.value"
  16. :key="radio.name"
  17. :link="`/radio/${encodeURIComponent(url)}`"
  18. :title="radio.name"
  19. />
  20. </f7-list>
  21. </f7-page>
  22. </template>