From 1cf010e7ce8da9b411faef87f9ea574dc6582570 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 26 May 2021 10:35:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/core.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)