guhongwei 4 anos atrás
pai
commit
4c38ca82e7
1 arquivos alterados com 1 adições e 4 exclusões
  1. 1 4
      src/views/service/index.vue

+ 1 - 4
src/views/service/index.vue

@@ -77,17 +77,14 @@ export default {
       if (this.$checkRes(res)) {
         if (this.type == '0') {
           this.$set(this, `oneList`, res.data);
-          this.$set(this, `total`, res.total);
         } else if (this.type == '1') {
           this.$set(this, `twoList`, res.data);
-          this.$set(this, `total`, res.total);
         } else if (this.type == '2') {
           this.$set(this, `thrList`, res.data);
-          this.$set(this, `total`, res.total);
         } else if (this.type == '3') {
           this.$set(this, `fourList`, res.data);
-          this.$set(this, `total`, res.total);
         }
+        this.$set(this, `total`, res.total);
       }
     },
     changeActive(name) {