zhongrj
2024-05-06 c9cd8d8cb06e1fab173b5e63ec7ad376a5c7a53b
src/api/user.js
@@ -2,7 +2,7 @@
import website from "@/config/website";
export const loginByUsername = (tenantId, deptId, roleId, username, password, type, key, code) => request({
  url: '/api/blade-auth/oauth/token',
  url: '/api/oauth/token',
  method: 'post',
  headers: {
    'Tenant-Id': tenantId,
@@ -17,14 +17,12 @@
    password,
    grant_type:"password",
    scope: "all",
    type,
    // 查全部-暂定
    loginType:1
    type
  }
});
export const loginBySocial = (tenantId, source, code, state) => request({
  url: '/api/blade-auth/oauth/token',
  url: '/api/oauth/token',
  method: 'post',
  headers: {
    'Tenant-Id': tenantId
@@ -40,7 +38,7 @@
})
export const loginBySso = (state, code) => request({
  url: '/api/blade-auth/oauth/token',
  url: '/api/oauth/token',
  method: 'post',
  headers: {
    'Tenant-Id': state
@@ -55,7 +53,7 @@
})
export const refreshToken = (refresh_token, tenantId, deptId, roleId) => request({
  url: '/api/blade-auth/oauth/token',
  url: '/api/oauth/token',
  method: 'post',
  headers: {
    'Tenant-Id': tenantId,