sponsor.ts 297 B

1234567891011121314151617181920
  1. import { onMounted, ref } from 'vue'
  2. const data = ref()
  3. export function useSponsor() {
  4. onMounted(async () => {
  5. if (data.value) {
  6. return
  7. }
  8. /*
  9. const result = await fetch(dataUrl)
  10. const json = await result.json() */
  11. data.value = []
  12. })
  13. return {
  14. data,
  15. }
  16. }