1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-04-05 11:18:42 +08:00

add loading prompt

This commit is contained in:
asdfo123 2024-11-04 22:27:00 +08:00
parent 9f0c46efc6
commit ade35786b4

View File

@ -45,7 +45,10 @@
</el-form-item>
</el-tooltip>
<el-button :loading="loading" type="primary" style="width:100%;margin-bottom:30px;" @click.native.prevent="handleLogin">Login</el-button>
<el-button :loading="loading" type="primary" style="width:100%;margin-bottom:30px;" @click.native.prevent="handleLogin">
<span v-if="!loading">Login</span>
<span v-else>Logging in...</span>
</el-button>
<div style="position:relative">
<div class="tips">