From d22879178dfd4164cf41fc783fd376ce7b7528cd Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Thu, 08 Jan 2026 16:11:54 +0800
Subject: [PATCH] feat:demo
---
uniapps/work-app/src/pages/login/index.vue | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/uniapps/work-app/src/pages/login/index.vue b/uniapps/work-app/src/pages/login/index.vue
index 8e97a3e..c470cbb 100644
--- a/uniapps/work-app/src/pages/login/index.vue
+++ b/uniapps/work-app/src/pages/login/index.vue
@@ -27,6 +27,7 @@
</checkbox-group>
记住密码
</label>
+ <div>忘记密码?</div>
</div>
<button class="login-btn" :style="[inputStyle]" @tap="submit">登录</button>
@@ -133,9 +134,11 @@
});
} catch (error) {
const errorMsg =
- error.data?.error_description !== "Bad credentials"
- ? error.data?.error_description
- : "登录失败,请重试";
+ error.data?.msg
+ ? error.data.msg
+ : (error.data?.error_description && error.data.error_description !== "Bad credentials")
+ ? error.data.error_description
+ : "登录失败,请重试";
uni.showToast({
title: errorMsg,
icon: "none",
@@ -241,7 +244,7 @@
.remember-password {
display: flex;
- justify-content: flex-end;
+ justify-content:space-between;
align-items: center;
margin-left: 62rpx;
margin-right: 58rpx;
--
Gitblit v1.9.3