原因:
参数为空时,转换日期格式时类型发生变化   导致返回 Invalid date

this.$moment(this.queryParams.effectDate).format('YYYY-MM-DD')

 
   解决办法:

  转成Number类型

this.$moment(Number(this.queryParams.effectDate)).format('YYYY-MM-DD')

  

相关文章:

  • 2021-12-27
  • 2022-12-23
  • 2021-10-30
  • 2022-02-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-27
  • 2022-01-01
  • 2022-12-23
  • 2021-11-27
  • 2021-10-02
  • 2022-01-01
相关资源
相似解决方案