You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
466 B
JavaScript
28 lines
466 B
JavaScript
|
1 week ago
|
import {
|
||
|
|
request
|
||
|
|
} from '@/utils/request'
|
||
|
|
import {
|
||
|
|
getGlobalData
|
||
|
|
} from '@/store/index.js'
|
||
|
|
|
||
|
|
|
||
|
|
const clientId = getGlobalData('clientId')
|
||
|
|
export function loginApi(params) {
|
||
|
|
return request({
|
||
|
|
url: '/auth/login',
|
||
|
|
method: 'POST',
|
||
|
|
headers: {
|
||
|
|
isToken: false,
|
||
|
|
isEncrypt: true,
|
||
|
|
repeatSubmit: false
|
||
|
|
},
|
||
|
|
method: 'post',
|
||
|
|
data: {
|
||
|
|
...params,
|
||
|
|
clientId,
|
||
|
|
grantType: params.grantType || 'password',
|
||
|
|
rememberMe: false,
|
||
|
|
tenantId: "000000",
|
||
|
|
}
|
||
|
|
})
|
||
|
|
}
|