@ -6,8 +6,8 @@ export const loginByUsername = (tenantId, deptId, roleId, username, password, ty
method: 'post',
headers: {
'Tenant-Id': tenantId,
'Dept-Id': deptId,
'Role-Id': roleId,
'Dept-Id': (website.switchMode ? deptId : ''),
'Role-Id': (website.switchMode ? roleId : ''),
'Captcha-Key': key,
'Captcha-Code': code,
},
@ -11,7 +11,7 @@ export default {
tenantMode: true, // 是否开启租户模式
tenantId: "000000", // 管理组租户编号
captchaMode: true, // 是否开启验证码模式
switchMode: true, // 是否开启部门切换模式
switchMode: false, // 是否开启部门切换模式
lockPage: '/lock',
tokenTime: 3000,
tokenHeader: 'Blade-Auth',