yys
maven
6 天以前 4088aee5374b2bcebf28e590d612ca72ad44197c
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';
    }
}