From ec763e1cb7dca873caf4afbc0dfde047b51753d3 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 17 十月 2025 17:26:54 +0800
Subject: [PATCH] 2025.10.17
---
src/views/LoginPage.vue | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/views/LoginPage.vue b/src/views/LoginPage.vue
index 7ecab70..018baa7 100644
--- a/src/views/LoginPage.vue
+++ b/src/views/LoginPage.vue
@@ -34,7 +34,9 @@
</el-form-item>
</el-form>
</div>
- <div class="btn-login" @click="login">鐧诲綍</div>
+ <el-button class="btn-login" @click="login" :loading="loading"
+ >鐧诲綍</el-button
+ >
</div>
</div>
</div>
@@ -49,6 +51,7 @@
export default {
data() {
return {
+ loading: false,
formObj: {},
rules: {
userName: [
@@ -79,6 +82,7 @@
},
methods: {
login() {
+ this.loading = true;
this.$refs.formRef.validate((valid) => {
if (valid) {
if (
@@ -95,6 +99,9 @@
});
}
}
+ setTimeout(() => {
+ this.loading = false;
+ }, 1000);
});
}
}
@@ -156,6 +163,7 @@
}
.btn-login {
+ color: white;
margin-top: 20px;
border-radius: 6px;
padding: 8px 60px;
@@ -196,6 +204,5 @@
rgb(13, 56, 133),
rgb(11, 53, 131)
);
- cursor: pointer;
}
</style>
--
Gitblit v1.9.3