flat: 123

This commit is contained in:
Apcallover
2024-03-20 17:16:16 +08:00
parent 53cfc53ba8
commit 36ed184cd4
7 changed files with 41 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ import {
} from '@/untils/store.js'
import website from "@/config/website";
export const loginByUsername = (tenantId, username, password, type, key, code) => request({
export const loginByUsername = (tenantId, username, password, type, key, code, token) => request({
url: '/api/jobslink-auth/oauth/token',
method: 'post',
headers: {
@@ -24,7 +24,10 @@ export const loginByUsername = (tenantId, username, password, type, key, code) =
grant_type: (website.captchaMode ? "captcha" : "password"),
scope: "all",
type
}
},
data: {
token
}
});
export const refreshToken = (refresh_token, tenantId) => request({