张含笑
2025-11-13 592b1d7afbfd7427167602da8e902ca98a561a3b
feat:登录添加空判断
1 files modified
19 ■■■■■ changed files
src/pages/login/index.vue 19 ●●●●● patch | view | raw | blame | history
src/pages/login/index.vue
@@ -67,6 +67,23 @@
    }
    async function submit() {
         if (!loginForm.value.username.trim()) {
            uni.showToast({
              title: "请输入用户名",
              icon: "none",
              duration: 2000
            });
            return;
          }
          if (!loginForm.value.password.trim()) {
            uni.showToast({
              title: "请输入密码",
              icon: "none",
              duration: 2000
            });
            return;
          }
        let userInfo = {
            tenantId: "000000",
            deptId: "",
@@ -226,7 +243,7 @@
        .login-btn {
            z-index: 1;
            @apply flex items-center justify-center py-12rpx px-0 text-30rpx border-none;
            background: #5a93e6;
            background: #1D6FE9;
            color: white;
            width: 590rpx;
            height: 76rpx;