Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: formaTime function date type logic error 修复formaTime 函数参数逻辑判断的问题 #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

EthanShen10086
Copy link

Signed-off-by: EthanShen [email protected]

Pre-Checklist

  • I have read through the readme document

  • My code has the necessary comments and tests

Description

this PR is to fix the timePicker.js file line 542 formatTime function parameter date judge logic error.
when date’s data type isn’t string, such as array or object type.
the sentence of ‘if’ judge sentence, date = new Date(date) is still executed, which may cause fatal error.

这个PR是为了解决timePicker.js文件中 formatTime函数 参数 date 逻辑判断错误的问题 当函数参数date的类型不是string或者number类型而是array 或者 object类型 if语句中 date = new Date(date) 的逻辑仍旧会执行 这将导致一些致命的后果

Related Issue

Close #18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

formateTime函数对于params类型判断错误从而可能导致异常
1 participant