吉安感知网项目-前端
罗广辉
2026-01-23 0e528821be4e83420c2ccf82cc80d0f012dc2070
Merge remote-tracking branch 'origin/master'
1 files modified
10 ■■■■ changed files
uniapps/work-app/src/pages/login/index.vue 10 ●●●● patch | view | raw | blame | history
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: "请输入用户名",