Browse Source

人工预报-写死日期

cl 1 năm trước cách đây
mục cha
commit
b2456390b7
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/views/prediction/artificial/flood.vue

+ 2 - 1
src/views/prediction/artificial/flood.vue

@@ -895,7 +895,8 @@ async function treeSelect(selectedKeys, e) {
   dataSource.value = [];
   let sTime = moment().subtract(1, "day").format("YYYY-MM-DD HH:mm:ss")
   let eTime = moment().subtract(0, "day").format("YYYY-MM-DD HH:mm:ss")
-  let sTimeInit = sTime.split(':')[0] + ':00:00';
+  // let sTimeInit = sTime.split(':')[0] + ':00:00';
+  let sTimeInit = new Date().getFullYear() + '-05-01 08:00:00';
   let eTimeInit = eTime.split(':')[0] + ':00:00';
   // 销毁echarts
   if (chart) {