export const datas = {
  redirect:false,
  loading:false,
  loadingBtn:false,
  config:{
    // 验证码开关
    captchaOnOff: false,
    // 数据甲解密开关
    dataSecretOnOff: false,
    loginType:''
  },
  loginForm: {
    username: '',
    password: '',
    rememberMe: false,
    uuid: ''
  },
  loginRules: {
    username: [
      { required: true, trigger:'change', message: '请输入您的账号' }
    ],
    password: [
      { required: true, trigger:'change', message: '请输入您的密码' }
    ]
  }
}

export interface dasinter{
  loading:boolean;
  redirect:boolean;
  loadingBtn:boolean;
  config: inconfig;
  loginForm: inloginForm;
  loginRules: inloginRules
}


export interface inconfig{
  // 验证码开关

  captchaOnOff: boolean;
  // 数据甲解密开关
  dataSecretOnOff: boolean;
  loginType: string;
  codeUrl?:string;
  uuid?:string;
  img?:string;
}
export interface inloginForm{
  username: string;
  password: string;
  rememberMe: boolean;
  uuid: string;
}
interface inloginRules{
  username: object[];
  password: object[];
}
