zhongrj
2024-04-28 d50bb56965dc110d448cc5107d69cd443944d11b
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,
@@ -24,7 +24,7 @@
});
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 +40,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 +55,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,