maven
7 天以前 34dd826b4b8c924b3ad1fc6b6830f6b866b03499
src/utils/util.js
@@ -1,4 +1,6 @@
//防抖
import dayjs from "dayjs";
export  function debounce(fn) {
    console.log(1)
    let t = null //只会执行一次
@@ -103,4 +105,17 @@
}
  export function filterArr(arr) {
      return arr.filter(item => item.flag !== false);
  }
  }
 export function getCurrentMonth () {
    let month = dayjs().month() + 1
    if (month <= 3) {
        return '1';
    } else if (month <= 6) {
        return '2';
    } else if (month <= 9) {
        return '3';
    } else if (month <= 12) {
        return '4';
    }
}