fix(types): ignore $fetch types
parent
8c2aed0590
commit
1e538cb8cd
|
@ -25,7 +25,7 @@ async function oauth() {
|
|||
server = server.split('/')[0]
|
||||
|
||||
try {
|
||||
location.href = await globalThis.$fetch(`/api/${server || publicServer.value}/login`, {
|
||||
location.href = await (globalThis.$fetch as any)(`/api/${server || publicServer.value}/login`, {
|
||||
method: 'POST',
|
||||
body: {
|
||||
origin: location.origin,
|
||||
|
@ -119,7 +119,7 @@ function select(index: number) {
|
|||
|
||||
onMounted(async () => {
|
||||
input?.focus()
|
||||
knownServers = await globalThis.$fetch('/api/list-servers')
|
||||
knownServers = await (globalThis.$fetch as any)('/api/list-servers')
|
||||
fuse = new Fuse(knownServers, { shouldSort: true })
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue