jufubao-base 1.0.290-beta2 → 1.0.290-beta3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.290-beta2",
3
+ "version": "1.0.290-beta3",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -513,7 +513,7 @@
513
513
  },
514
514
  getYearAndMonth(dateStr) {
515
515
  // 将输入的日期字符串转换为Date对象
516
- const date = new Date(dateStr.replace("年", "-").replace("月", "-01"));
516
+ const date = new Date(this.convertDateFormat(dateStr));
517
517
 
518
518
  // 获取年份和月份
519
519
  const year = date.getFullYear();