From 5e53c9a353d5457f4de040ee87bc9dc2a0034cab Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Fri, 23 Jan 2026 12:20:25 +0800
Subject: [PATCH] feat:工单更新
---
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