登录按钮支持回车登录.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
<h3 class="login-title">登录kafka-console-ui</h3>
|
||||
<a-form-item label="账号">
|
||||
<a-input
|
||||
@keyup.enter="handleSubmit"
|
||||
style="width: 200px"
|
||||
allowClear
|
||||
v-decorator="[
|
||||
@@ -20,6 +21,7 @@
|
||||
</a-form-item>
|
||||
<a-form-item label="密码">
|
||||
<a-input-password
|
||||
@keyup.enter="handleSubmit"
|
||||
style="width: 200px"
|
||||
v-decorator="[
|
||||
'password',
|
||||
@@ -28,7 +30,11 @@
|
||||
/>
|
||||
</a-form-item>
|
||||
<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-form-item>
|
||||
|
||||
@@ -24,7 +24,11 @@
|
||||
<DeleteMessage :topic-list="topicList"></DeleteMessage>
|
||||
</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>
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
|
||||
Reference in New Issue
Block a user