From f5f42e3f785b334c24775d83c7c2be6fd2d9a38e Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Thu, 06 Nov 2025 13:50:06 +0800
Subject: [PATCH] feat:登录页调整
---
src/pages/login/index.vue | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue
index f98076d..c434423 100644
--- a/src/pages/login/index.vue
+++ b/src/pages/login/index.vue
@@ -81,8 +81,9 @@
url: "/pages/user/index",
});
} catch (error) {
+ const errorMsg =error.data?.error_description !=="Bad credentials" ? error.data?.error_description: "登录失败,请重试";
uni.showToast({
- title: error.data.error_description,
+ title: errorMsg,
icon: "none",
duration: 2000
});
--
Gitblit v1.9.3