Browse Source

全局projectId

zhulizhen 5 năm trước cách đây
mục cha
commit
d3b64906d6
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  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)
 }