fix(setup): fixes #175

This commit is contained in:
kunish 2023-09-07 19:36:36 +08:00
parent d9cfa14cd3
commit 8242706290
No known key found for this signature in database
GPG Key ID: 647A12B4F782C430

View File

@ -98,15 +98,15 @@ export default () => {
if (query.has('hostname')) {
void onSubmit({
url: `http://${query.get('hostname')}${
query.get('port') && ':' + query.get('port')
url: `${window.location.protocol}//${query.get('hostname')}${
query.get('port') ? `:${query.get('port')}` : ''
}`,
secret: query.get('secret') ?? '',
})
} else if (endpointList().length === 0) {
/**
/**
we only try auto login when there is nothing in endpoint list
or user who is using default config wont be able to switch to another endpoint ever
or user who is using default config won't be able to switch to another endpoint ever
*/
void onSubmit({
url: 'http://127.0.0.1:9090',