maxiaoxiao 6 luni în urmă
părinte
comite
588d13b874
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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);
     },