Browse Source

苹果手机bug处理 ,获取月底

zhengkaixin 7 months ago
parent
commit
52e6bcb8cd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apis/utils/index.js

+ 1 - 1
apis/utils/index.js

@@ -15,7 +15,7 @@ export const nextMonth=(year,month,day,bl)=>{
 		str= year+"-"+(parseInt(month) +1)+"-"+day
 	}
 	if(bl){
-		var now= new Date(str);
+		var now= newDate(str);
 		return parseUnixTime(new Date(now.getTime()-1000*60*60*24),'{y}-{m}-{d}')	
 	}
 }