fix using Ref<any> type

This commit is contained in:
Chen, Tai-Lin committed 2024-03-04 23:38:18 +08:00
1 parent ba43b4c5e8
commit ddaefca5fb
5 files changed
+35 -13

No files matched your search

+8 -2
View File
@@ -1,11 +1,17 @@
<script setup lang="ts">
import { Ref, ref, onMounted } from 'vue'
import { ref, onMounted } from 'vue'
import { useToast } from 'vue-toastification'
import DynamicBackground from '../components/DynamicBackground.vue'
import GameHeaderPart from '../components/GameHeaderPart.vue'
import api from '../utils/api'
const leaderboard: Ref<any> = ref([])
const leaderboard = ref<
{
username: string
score: number
completedQuests: string[]
}[]
>([])
const toast = useToast()
async function getLeaderboard() {