flat: tiket

This commit is contained in:
Apcallover
2024-04-15 18:01:50 +08:00
parent 4db1206fc9
commit b86ea914a3
4 changed files with 25 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
import website from '@/config/website';
import request from '@/router/axios';
export const loginByUsername = (username, password, type, key, code, loginType) =>
export const loginByUsername = (username, password, type, key, code, loginType, ticket) =>
request({
url: '/api/jobslink-auth/oauth/token',
method: 'post',
@@ -15,7 +15,8 @@ export const loginByUsername = (username, password, type, key, code, loginType)
password,
grant_type: (website.captchaMode ? 'captcha' : 'password'),
scope: 'all',
type
type,
ticket
}
});