fix: allow empty server for sign in
This commit is contained in:
parent
a101b79486
commit
bb69e6f231
|
@ -4,9 +4,7 @@ import { DEFAULT_SERVER } from '~/constants'
|
||||||
let server = $ref<string>('')
|
let server = $ref<string>('')
|
||||||
|
|
||||||
async function oauth() {
|
async function oauth() {
|
||||||
if (!server)
|
if (server)
|
||||||
return
|
|
||||||
|
|
||||||
server = server.split('/')[0]
|
server = server.split('/')[0]
|
||||||
location.href = `/api/${server || DEFAULT_SERVER}/login`
|
location.href = `/api/${server || DEFAULT_SERVER}/login`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue