Skip to content

Commit

Permalink
fix: 修复浏览数请求
Browse files Browse the repository at this point in the history
  • Loading branch information
markthree committed Apr 30, 2023
1 parent 6d73470 commit c2eaeac
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/composables/useVisits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ export function useVisits() {
return visits
}

const { data: visits } = useRequest(
// @ts-ignore
'https://visits-kv.deno.dev/tov-template'
)
const { data: visits } = useRequest(async function () {
return fetch('https://visits-kv.deno.dev/tov-template')
})
return visits ?? 0
}

0 comments on commit c2eaeac

Please sign in to comment.