flat: 暂存

This commit is contained in:
Apcallover
2024-04-16 10:51:05 +08:00
parent 1ed2d868a9
commit c67417f347
2 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -80,7 +80,7 @@ const user = {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
loginByUsername(userInfo.tenantId, userInfo.username, md5(userInfo.password), userInfo.type, loginByUsername(userInfo.tenantId, userInfo.username, md5(userInfo.password), userInfo.type,
userInfo.key, userInfo.key,
userInfo.code, userInfo.ticket).then(res => { userInfo.code, userInfo.token).then(res => {
const data = res.data; const data = res.data;
if (data.error_description) { if (data.error_description) {