Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pkg/common/util/os/limits_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build !windows
// +build !windows

/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
Expand Down
20 changes: 17 additions & 3 deletions ui-vue3/src/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
-->

<script setup lang="ts">
import { reactive } from 'vue'
import { reactive, ref, onMounted } from 'vue'
import { login } from '@/api/service/login'
import { useRoute, useRouter } from 'vue-router'
import { updateAuthState } from '@/utils/AuthUtil'
Expand All @@ -34,6 +34,12 @@ const route = useRoute()
const redirect: any = route.query.redirect || '/'
const meshStore = useMeshStore()

const usernameInputRef = ref()

onMounted(() => {
usernameInputRef.value?.focus()
})

function loginHandle() {
let formData = new FormData()
formData.append('user', userinfo.username)
Expand Down Expand Up @@ -68,15 +74,23 @@ function loginHandle() {
name="username"
:rules="[{ required: true }]"
>
<a-input type="" v-model:value="userinfo.username"></a-input>
<a-input
ref="usernameInputRef"
v-model:value="userinfo.username"
@pressEnter="loginHandle"
></a-input>
</a-form-item>
<a-form-item
class="item"
:label="$t('loginDomain.password')"
name="password"
:rules="[{ required: true }]"
>
<a-input type="password" v-model:value="userinfo.password"></a-input>
<a-input
type="password"
v-model:value="userinfo.password"
@pressEnter="loginHandle"
></a-input>
</a-form-item>
<a-form-item class="item" label="">
<a-button @click="loginHandle" size="large" type="primary" class="login-btn"
Expand Down
Loading