UNPKG

enc-framework

Version:

enc-framework 核心组件.

23 lines (18 loc) 696 B
// 爱加密http请求对象 import AjmHttp from '../utils/ajm-http'; import AjmConfig from '../utils/ajm-config' // 系统api function SystemApi(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; } // 获取系统 SystemApi.prototype.loadSystem = function(){ return this.$http.get('/common/configture/getPaltformParams').then(res => res.data); } export default SystemApi