Explorar el Código

全局projectId

zhulizhen hace 5 años
padre
commit
d3b64906d6
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  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)
 }