登录按钮支持回车登录.

This commit is contained in:
许晓东
2023-12-23 21:14:38 +08:00
parent 8c946a96ba
commit 4929953acd
2 changed files with 12 additions and 2 deletions

View File

@@ -9,6 +9,7 @@
<h3 class="login-title">登录kafka-console-ui</h3> <h3 class="login-title">登录kafka-console-ui</h3>
<a-form-item label="账号"> <a-form-item label="账号">
<a-input <a-input
@keyup.enter="handleSubmit"
style="width: 200px" style="width: 200px"
allowClear allowClear
v-decorator="[ v-decorator="[
@@ -20,6 +21,7 @@
</a-form-item> </a-form-item>
<a-form-item label="密码"> <a-form-item label="密码">
<a-input-password <a-input-password
@keyup.enter="handleSubmit"
style="width: 200px" style="width: 200px"
v-decorator="[ v-decorator="[
'password', 'password',
@@ -28,7 +30,11 @@
/> />
</a-form-item> </a-form-item>
<a-form-item :wrapper-col="{ span: 16, offset: 5 }"> <a-form-item :wrapper-col="{ span: 16, offset: 5 }">
<a-button type="primary" @click="handleSubmit" :loading="loading" <a-button
type="primary"
@click="handleSubmit"
:loading="loading"
@keyup.enter="handleSubmit"
>登录</a-button >登录</a-button
> >
</a-form-item> </a-form-item>

View File

@@ -24,7 +24,11 @@
<DeleteMessage :topic-list="topicList"></DeleteMessage> <DeleteMessage :topic-list="topicList"></DeleteMessage>
</a-tab-pane> </a-tab-pane>
<a-tab-pane key="5" tab="发送统计" v-if="isAuthorized('message:send-statistics')"> <a-tab-pane
key="5"
tab="发送统计"
v-if="isAuthorized('message:send-statistics')"
>
<SendStatistics :topic-list="topicList"></SendStatistics> <SendStatistics :topic-list="topicList"></SendStatistics>
</a-tab-pane> </a-tab-pane>
</a-tabs> </a-tabs>