Sfoglia il codice sorgente

fix: api test

getOnlineDurationReport
Casper Dai 2 anni fa
parent
commit
ae8ed38789
1 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  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 () {