Explorar el Código

fix: api test

getOnlineDurationReport
Casper Dai hace 2 años
padre
commit
ae8ed38789
Se han modificado 1 ficheros con 2 adiciones y 3 borrados
  1. 2 3
      src/views/test-api.vue

+ 2 - 3
src/views/test-api.vue

@@ -181,9 +181,8 @@ export default {
       const { startDate, endDate } = this.getMonth()
       this.checkDevice() && getOnlineDurationReport({
         deviceId: this.deviceId,
-        type: 1,
-        sumDateFrom: startDate,
-        sumDateTo: endDate
+        from: startDate,
+        to: endDate
       }).then(this.onData)
     },
     async onTriggerAdSnap () {