Просмотр исходного кода

解决设备页面分页的bug

jishenghua 9 месяцев назад
Родитель
Сommit
4e606f2690
1 измененных файлов с 1 добавлено и 1 удалено
  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);