guhongwei před 4 roky
rodič
revize
181165c726
2 změnil soubory, kde provedl 4 přidání a 3 odebrání
  1. 2 2
      src/store/topmessage.js
  2. 2 1
      src/views/service/parts/sign.vue

+ 2 - 2
src/store/topmessage.js

@@ -32,8 +32,8 @@ const actions = {
     const res = await this.$axios.$delete(`${api.newsInfo}/${payload}`);
     return res;
   },
-  async querytwo({ commit }, {}) {
-    const res = await this.$axios.$get(api.servenodeInfo, {});
+  async querytwo({ commit }, { skip = 0, limit = 15, ...info } = {}) {
+    const res = await this.$axios.$get(api.servenodeInfo, { ...info });
     return res;
   },
 };

+ 2 - 1
src/views/service/parts/sign.vue

@@ -102,6 +102,7 @@ export default {
     this.channel();
     if (this.serveTime) {
       this.searchNode();
+      this.searchNode = false;
     }
   },
   methods: {
@@ -113,9 +114,9 @@ export default {
         this.$set(this, `hyyy`, res.data.reverse());
       }
     },
+    // 页面一次性请求
     async searchNode() {
       let res = await this.querytwo();
-      this.searchNode = false;
     },
     channel() {
       this.$stomp({