diff --git a/src/utils/core.js b/src/utils/core.js index d9b981f..53d0260 100644 --- a/src/utils/core.js +++ b/src/utils/core.js @@ -1,5 +1,7 @@ import config from '@/config' import store from '@/store' +import api from '@/utils/api' +import {get} from '@/utils/http' const pad2 = str => ('0' + str).substr(-2) function fMoney (s, n) { @@ -181,7 +183,7 @@ function toSubSystem(className = '',id = '',classId = '',pattern = ''){ id:sessionStorage.getItem('id'), source:source } - this.$get(this.api.queryProjectIdAndPattenById,params).then(res => { + get(api.queryProjectIdAndPattenById,params).then(res => { let projectId = res.Info.projectId let pattern = res.Info.pattern sessionStorage.setItem("id",projectId)