车间能级提升-智能设备管理系统
baoshiwei
2025-05-29 21811bad262b3f774ca7c12a68e0bf64a8321501
eims-ui/apps/web-antd/src/views/_core/authentication/login.vue
@@ -8,7 +8,7 @@
import { omit } from 'lodash-es';
import { tenantList, type TenantResp } from '#/api';
import { authBinding, tenantList, type TenantResp } from '#/api';
import { captchaImage, type CaptchaResponse } from '#/api/core/captcha';
import { useAuthStore } from '#/store';
@@ -50,7 +50,11 @@
}
onMounted(async () => {
  await Promise.all([loadCaptcha(), loadTenant()]);
  // 启动单点登录注释掉下边这一行,否则放开
  // await Promise.all([loadCaptcha(), loadTenant()]);
  // 启动单点登录放开下边两行注释,否则注释掉
  const href = await authBinding('keycloak', '000000');
  window.location.href = href;
});
const formSchema = computed((): VbenFormSchema[] => {
@@ -89,7 +93,7 @@
        class: 'focus:border-primary',
        placeholder: $t('authentication.usernameTip'),
      },
      defaultValue: 'admin',
      defaultValue: 'test',
      fieldName: 'username',
      label: $t('authentication.username'),
      rules: z.string().min(1, { message: $t('authentication.usernameTip') }),
@@ -100,7 +104,7 @@
        class: 'focus:border-primary',
        placeholder: $t('authentication.password'),
      },
      defaultValue: 'admin123',
      defaultValue: '123456',
      fieldName: 'password',
      label: $t('authentication.password'),
      rules: z.string().min(5, { message: $t('authentication.passwordTip') }),