Selaa lähdekoodia

解决设备页面分页的bug

jishenghua 9 kuukautta sitten
vanhempi
sitoutus
4e606f2690
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      gyj-iot-web/src/views/iot/device/index.vue

+ 1 - 1
gyj-iot-web/src/views/iot/device/index.vue

@@ -380,7 +380,7 @@ function getList() {
     getGroupList();
     listDeviceShort(queryParams.value).then((response) => {
         deviceList.value = response.rows;
-        total.value = response.total - 1;
+        total.value = response.total;
         // 订阅消息
         if (deviceList.value && deviceList.value.length > 0) {
             mqttSubscribe(deviceList.value);