zmc
2023-11-16 73cb3ec2b1660610e3621d7614ad308f2c19331d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 
import dayjs from 'dayjs'
export default {
 
      
        // 判断已选的月份是否大于当前月份
        judgeDateValid(date){
          // 获得当月月份
          let currentMonth = dayjs()
          let selectMonth = date.getTime()
          // 选择大于现在月份
          if(selectMonth > currentMonth){
            return true
          }
 
          return false
        }
 
}