refactor: improve sign in server

zio/stable
三咲智子 2022-11-23 21:58:56 +08:00
parent d5ee83be2d
commit ca0672390c
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
1 changed files with 1 additions and 0 deletions

View File

@ -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`
}