| | |
| | | import request from '@/router/axios'; |
| | | import website from "@/config/website"; |
| | | |
| | | export const loginByUsername = (tenantId, deptId, roleId, userId, password, type, key) => request({ |
| | | export const loginByUsername = (deptId, roleId, userId, password, type, key) => request({ |
| | | url: '/api/framework/loginController/login', |
| | | method: 'post', |
| | | headers: { |
| | | 'Tenant-Id': tenantId, |
| | | 'Dept-Id': (website.switchMode ? deptId : ''), |
| | | 'Role-Id': (website.switchMode ? roleId : ''), |
| | | 'Captcha-Key': key, |
| | | |
| | | }, |
| | | params: { |
| | | tenantId, |
| | | userId, |
| | | password, |
| | | grant_type: (website.captchaMode ? "captcha" : "password"), |