From 0e528821be4e83420c2ccf82cc80d0f012dc2070 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Fri, 23 Jan 2026 12:20:49 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
uniapps/work-app/src/pages/login/index.vue | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/uniapps/work-app/src/pages/login/index.vue b/uniapps/work-app/src/pages/login/index.vue
index 552eac3..b4b4a41 100644
--- a/uniapps/work-app/src/pages/login/index.vue
+++ b/uniapps/work-app/src/pages/login/index.vue
@@ -31,6 +31,7 @@
</div>
<button class="login-btn" :style="[inputStyle]" @tap="submit">登录</button>
+ <button class="login-btn" :style="[inputStyle]" @tap="submit1">登录1</button>
<!-- <view class="agreement">
<label>
<checkbox :checked="agreed" @click="agreed = !agreed" />
@@ -88,12 +89,15 @@
});
}
const loginFormGd = ref({
- username: "zhx",
- password: "123456",
+ username: "admin",
+ password: "admin",
});
+function submit1() {
+ gdLogin();
+}
async function submit() {
// 调用工单登录接口
- await gdLogin();
+
if (!loginForm.value.username.trim()) {
uni.showToast({
title: "请输入用户名",
--
Gitblit v1.9.3