diff --git a/src/composables/useStatistics.js b/src/composables/useStatistics.js index b529e47..60bbb37 100644 --- a/src/composables/useStatistics.js +++ b/src/composables/useStatistics.js @@ -8,10 +8,10 @@ import { getStatistics } from '@/http/api' export const useStatistics = (tag, rest = {}) => { const store = useStore() const { currentFloor } = storeToRefs(store) - const { projectCode, deviceCode } = currentFloor.value + const { projectCode, machineCode } = currentFloor.value const params = { projectCode, - deviceCode, + deviceCode: machineCode, tag, ...rest }