From 9a87baccb1cf2d707a775e414ddac07fd94cf8fc Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期三, 26 十一月 2025 17:07:51 +0800
Subject: [PATCH] 最新版本541200007
---
admin/src/views/login.vue | 21 ++++++++++++++-------
1 files changed, 14 insertions(+), 7 deletions(-)
diff --git a/admin/src/views/login.vue b/admin/src/views/login.vue
index 43277c4..c55af80 100644
--- a/admin/src/views/login.vue
+++ b/admin/src/views/login.vue
@@ -3,8 +3,8 @@
<img src="@/assets/images/bg@2x.png" class="main_bg" alt="">
<div class="login_wrap">
<div class="login_img">
- <div class="h2">瀹夊窘瀹夋嘲鐗╂祦鏈夐檺璐d换鍏徃</div>
- <div class="h3">鏅烘収鐗╂祦鍥尯瀹夋秷涓�浣撳寲绯荤粺</div>
+<!-- <div class="h2">鍏姟杞﹂挜鍖欐櫤鑳芥煖绠$悊绯荤粺</div>-->
+ <div class="h3">鍏姟杞﹂挜鍖欐櫤鑳芥煖绠$悊绯荤粺</div>
</div>
<div class="form_wrap">
<div class="tabs">
@@ -115,11 +115,11 @@
if (this.loading) {
return
}
- this.loading = true
if (this.activeTab == 0) {
if (!this.__check()) {
return
}
+ this.loading = true
loginByPassword({
username: this.username.trim(),
password: this.password,
@@ -138,7 +138,8 @@
localStorage.removeItem('isRemPsd')
}
Cookies.set('dm_user_token', res)
- this.$router.push('index')
+ // window.location.reload()
+ this.$router.push('/')
})
.catch(e => {
this.refreshCaptcha()
@@ -154,12 +155,16 @@
if (!smsCode) {
return Message.error('璇疯緭鍏ラ獙璇佺爜')
}
+ this.loading = true
loginByPhone({ phone, code: smsCode }).then(res => {
if (this.isRemPsd) {
localStorage.setItem('phone', this.username.trim())
}
Cookies.set('dm_user_token', res)
- this.$router.push('index')
+ this.$router.push('/')
+ // this.$router.push('index')
+ }).catch(e => {
+ this.refreshCaptcha()
}).finally(() => {
this.loading = false
})
@@ -266,7 +271,8 @@
background-size: 100% 100%;
padding-left: 40px;
padding-top: 60px;
- .h2{
+
+ .h2 {
color: $primary-color;
background-color: #fff;
height: 24px;
@@ -274,10 +280,11 @@
align-items: center;
justify-content: center;
border-radius: 4px;
- width: 186px;
+ width: 248px;
display: flex;
margin-bottom: 12px;
}
+
.h3 {
font-size: 28px;
font-weight: 700;
--
Gitblit v1.9.3