maxiaoxiao 6 月之前
父節點
當前提交
588d13b874
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);
     },