소스 검색

全局projectId

zhulizhen 5 년 전
부모
커밋
d3b64906d6
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      src/api/doBusiness/business.js

+ 3 - 2
src/api/doBusiness/business.js

@@ -1,7 +1,8 @@
 import httputils from '@/api/httputils'
+import store from '@/store'
 export function queryHours({postParams}) {
-    return httputils.postJson(`/duoduo-service/transfer/chiller/business/hours/query?projectId=Pj4419000005`, postParams)
+    return httputils.postJson(`/duoduo-service/transfer/chiller/business/hours/query?projectId=${store.state.projectId}`, postParams)
 }
 export function updateHours({postParams}) {
-    return httputils.postJson(`/duoduo-service/transfer/chiller/business/hours/update?projectId=Pj4419000005`, postParams)
+    return httputils.postJson(`/duoduo-service/transfer/chiller/business/hours/update?projectId=${store.state.projectId}`, postParams)
 }