Преглед изворни кода

解决设备页面分页的bug

jishenghua пре 9 месеци
родитељ
комит
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);