浏览代码

风光资源分析页面默认时间改为前一天

baiyanting 1 年之前
父节点
当前提交
d71b28fa17
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/economicsOperation/stationAnalyse/windAndPhotovoltaic/index.vue

+ 1 - 1
src/views/economicsOperation/stationAnalyse/windAndPhotovoltaic/index.vue

@@ -51,7 +51,7 @@ export default {
     return {
     return {
       station: "",
       station: "",
       stationOptions: [],
       stationOptions: [],
-      date: dayjs().format("YYYY-MM-DD"),
+      date: dayjs().add(-1, "day").format("YYYY-MM-DD"),
       tabIndex: -1,
       tabIndex: -1,
       tabOptions: [
       tabOptions: [
         { id: -1, name: "风电" },
         { id: -1, name: "风电" },