|
|
@ -1,6 +1,7 @@ |
|
|
|
import request from '@/utils/request' |
|
|
|
let authApi = localStorage.getItem('authApi') + '/api' |
|
|
|
let loginApi = localStorage.getItem('loginApi') |
|
|
|
let baseApi = localStorage.getItem('baseApi') + '/api' |
|
|
|
let authUrl = localStorage.getItem('authApi') |
|
|
|
let authApi = authUrl + '/api' |
|
|
|
|
|
|
|
export function logout() { |
|
|
|
return request({ |
|
|
@ -14,7 +15,7 @@ export function logout() { |
|
|
|
// 登录
|
|
|
|
export function login(data) { |
|
|
|
return request({ |
|
|
|
url: loginApi + '/CustAccount/login', |
|
|
|
url: authUrl + '/CustAccount/login', |
|
|
|
method: 'post', |
|
|
|
data |
|
|
|
}) |
|
|
@ -35,7 +36,7 @@ export function token(data) { |
|
|
|
// 通过token获取用户信息(单点登录)
|
|
|
|
export function getUsersByToken(token) { |
|
|
|
return request({ |
|
|
|
url: loginApi + '/connect/userinfo', |
|
|
|
url: authUrl + '/connect/userinfo', |
|
|
|
method: 'get', |
|
|
|
Token:token |
|
|
|
}) |
|
|
@ -53,7 +54,7 @@ export function getUsersByUserName(name) { |
|
|
|
export function getInterfaceBoard() { |
|
|
|
return request({ |
|
|
|
method:'get', |
|
|
|
url: authApi + '/abp/application-localization', |
|
|
|
url: baseApi + '/abp/application-localization', |
|
|
|
params:{ |
|
|
|
CultureName:localStorage.getItem('browserLanguage'), |
|
|
|
OnlyDynamics:false |
|
|
@ -66,7 +67,7 @@ export function getInterfaceBoard() { |
|
|
|
export function getDefinitionMenu(IncludeTypes) { |
|
|
|
return request({ |
|
|
|
method:'get', |
|
|
|
url: authApi + '/abp/application-configuration', |
|
|
|
url: baseApi + '/abp/application-configuration', |
|
|
|
params:{IncludeLocalizationResources:true} |
|
|
|
}) |
|
|
|
} |
|
|
@ -75,7 +76,7 @@ export function getDefinitionMenu(IncludeTypes) { |
|
|
|
export async function getApiDefinition() { |
|
|
|
return request({ |
|
|
|
method:'get', |
|
|
|
url: authApi + '/abp/api-definition', |
|
|
|
url: baseApi + '/abp/api-definition', |
|
|
|
params:{IncludeTypes:true} |
|
|
|
}) |
|
|
|
} |
|
|
@ -85,6 +86,7 @@ export async function getApiDefinition() { |
|
|
|
export function getPageListRoles(data) { |
|
|
|
return request({ |
|
|
|
url: authApi + '/identity/roles', |
|
|
|
// url: 'http://192.168.0.190:44330/Identity/Roles',
|
|
|
|
method: 'get', |
|
|
|
params: data |
|
|
|
}) |
|
|
|