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

+2 -2
View File
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { computed, onMounted, Ref, ref } from 'vue'
import { computed, onMounted, ref } from 'vue'
import { RouterLink, useRouter } from 'vue-router'
import { useToast } from 'vue-toastification'
import api from '../utils/api'
@@ -27,7 +27,7 @@ const password = ref('')
const errorMessage = ref('')
const toast = useToast()
const availableMethods: Ref<any> = ref({})
const availableMethods = ref<{ [key: string]: boolean }>({})
onMounted(async () => {
const res = await api.get('/auth/available-methods')
availableMethods.value = res.data