Explorar o código

fix: api test

getOnlineDurationReport
Casper Dai %!s(int64=2) %!d(string=hai) anos
pai
achega
ae8ed38789
Modificáronse 1 ficheiros con 2 adicións e 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 () {