guhongwei преди 4 години
родител
ревизия
377497f97e
променени са 1 файла, в които са добавени 2 реда и са изтрити 4 реда
  1. 2 4
      src/views/superAdminCenter/monitor/index.vue

+ 2 - 4
src/views/superAdminCenter/monitor/index.vue

@@ -43,10 +43,8 @@ export default {
     ...dock(['query']),
     async search() {
       let res = await this.query({ status: '1' });
-      let arr = await this.query({ status: '2' });
-      var newData = res.data.concat(arr.data);
-      if (this.$checkRes(newData)) {
-        this.$set(this, `list`, newData);
+      if (this.$checkRes(res)) {
+        this.$set(this, `list`, res.data);
       }
     },
     searchLive() {