enc-framework
Version:
enc-framework 核心组件.
29 lines (22 loc) • 923 B
JavaScript
// 爱加密http请求对象
import AjmHttp from '../utils/ajm-http';
import AjmConfig from '../utils/ajm-config'
// 系统api
function PlatformApi(store,options){
this.options = options || {};
this.store = store || {};
this.baseUrl = this.options.baseUrl || "";
this.contextPath = AjmConfig.get("MANAGER_CONTEXT_PATH") || this.options.contextPath || "";
// $http对象
this.$http = new AjmHttp({baseUrl: this.baseUrl,contextPath: this.contextPath}).getHttpClient();
return this;
}
// 获取系统
PlatformApi.prototype.loadPlatformInfo = function(systemCode){
return this.$http.get('/common/configture/getPlatformInfoVO?systemCode='+systemCode).then(res => res.data);
}
//检查IP是否受限
PlatformApi.prototype.checkFilterIp = function(){
return this.$http.get('/common/ipFilter/checkFilterIp').then(res => res.data);
}
export default PlatformApi