mirror of
https://github.com/elk-zone/elk.git
synced 2025-03-28 20:41:20 +03:00
refactor: improve sign in server
This commit is contained in:
parent
d5ee83be2d
commit
ca0672390c
1 changed files with 1 additions and 0 deletions
|
@ -4,6 +4,7 @@ import { DEFAULT_SERVER } from '~/constants'
|
||||||
let server = $ref<string>('')
|
let server = $ref<string>('')
|
||||||
|
|
||||||
async function oauth() {
|
async function oauth() {
|
||||||
|
server = server.split('/')[0]
|
||||||
location.href = `/api/${server || DEFAULT_SERVER}/login`
|
location.href = `/api/${server || DEFAULT_SERVER}/login`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue