Prechádzať zdrojové kódy

moment依赖修改为dayjs

zq940222 4 mesiacov pred
rodič
commit
2e9bf49562
1 zmenil súbory, kde vykonal 1 pridanie a 2 odobranie
  1. 1 2
      src/views/adweb/data/trafficAnalysis.vue

+ 1 - 2
src/views/adweb/data/trafficAnalysis.vue

@@ -228,7 +228,6 @@ import selectSite from "@/components/Adweb/selectSite.vue";
 import areaChart from "./chart/areaChart.vue";
 import { reactive, ref } from "vue";
 import { getAction } from "@/api/manage/manage";
-import moment from "moment";
 import MapAdweb from "@/components/chart/mapAdweb.vue";
 import "flag-icon-css/css/flag-icons.css";
 import dayjs from 'dayjs';
@@ -514,7 +513,7 @@ const onChangeDatePicker = (date, dateString) => {
 
 //日期选择只能今天之前
 function disabledDate(current) {
-  return current && current > moment().subtract(0, "days");
+  return current && current > dayjs();
 }
 
 const setTime = (time) => {