maxiaoxiao 6 miesięcy temu
rodzic
commit
588d13b874
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/views/farmlandProtection/gdzl/index.vue

+ 1 - 1
src/views/farmlandProtection/gdzl/index.vue

@@ -437,7 +437,7 @@ export default {
       });
     },
     contrast() {
-      let dbdata = { id: this.region, fp: this.yearList.reverse(), type: "gdbh" }; //+ this.$props.pageType,
+      let dbdata = { id: this.region, fp: this.yearList.sort((a, b) => a.year - b.year), type: "gdbh" }; //+ this.$props.pageType,
       console.log("contrast", dbdata);
       this.$emit("contrast", dbdata);
     },