소스 검색

fix(sensor): list data

Casper Dai 3 년 전
부모
커밋
02462c70af
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/views/device/detail/components/external/Sensors/Sensor.vue

+ 2 - 2
src/views/device/detail/components/external/Sensors/Sensor.vue

@@ -70,7 +70,7 @@ export default {
     return {
       list: [],
       schema: {
-        singlePage: true,
+        nonPagination: true,
         list: this.getSensors,
         cols: [
           { prop: 'name', label: '传感器名称' },
@@ -119,7 +119,7 @@ export default {
       this.$refs.tableDialog?.getTable()?.pageTo()
     },
     getSensors () {
-      return Promise.resolve({ data: this.list.concat(this.list).concat(this.list) })
+      return Promise.resolve({ data: this.list })
     },
     onShowAll () {
       this.$refs.tableDialog.show()