feat: type defineEmits for ApiConfig
This commit is contained in:
parent
20bdb01187
commit
1966cc3c0e
@ -71,14 +71,14 @@ import {success} from '@/message'
|
|||||||
import Message from '@/components/misc/Message.vue'
|
import Message from '@/components/misc/Message.vue'
|
||||||
import ButtonLink from '@/components/misc/ButtonLink.vue'
|
import ButtonLink from '@/components/misc/ButtonLink.vue'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = withDefaults(defineProps<{
|
||||||
configureOpen: {
|
configureOpen?: boolean
|
||||||
type: Boolean,
|
}>(), {
|
||||||
required: false,
|
configureOpen: false,
|
||||||
default: false,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
const emit = defineEmits(['foundApi'])
|
const emit = defineEmits<{
|
||||||
|
'foundApi': [url: string],
|
||||||
|
}>()
|
||||||
|
|
||||||
const apiUrl = ref(window.API_URL)
|
const apiUrl = ref(window.API_URL)
|
||||||
const configureApi = ref(window.API_URL === '')
|
const configureApi = ref(window.API_URL === '')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user