mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-05 00:19:59 +00:00
fix: allow empty server for sign in
This commit is contained in:
parent
a101b79486
commit
bb69e6f231
1 changed files with 2 additions and 4 deletions
|
@ -4,10 +4,8 @@ import { DEFAULT_SERVER } from '~/constants'
|
|||
let server = $ref<string>('')
|
||||
|
||||
async function oauth() {
|
||||
if (!server)
|
||||
return
|
||||
|
||||
server = server.split('/')[0]
|
||||
if (server)
|
||||
server = server.split('/')[0]
|
||||
location.href = `/api/${server || DEFAULT_SERVER}/login`
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue