mirror of
https://github.com/elk-zone/elk
synced 2024-11-23 22:56:09 +09:00
refactor: improve sign in server
This commit is contained in:
parent
d5ee83be2d
commit
ca0672390c
@ -4,6 +4,7 @@ import { DEFAULT_SERVER } from '~/constants'
|
||||
let server = $ref<string>('')
|
||||
|
||||
async function oauth() {
|
||||
server = server.split('/')[0]
|
||||
location.href = `/api/${server || DEFAULT_SERVER}/login`
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user