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

Calendar:fix October disappear bug #15394

Merged
merged 2 commits into from
May 7, 2019
Merged

Calendar:fix October disappear bug #15394

merged 2 commits into from
May 7, 2019

Conversation

qingdengyue
Copy link
Contributor

Please make sure these boxes are checked before submitting your PR, thank you!

  • Make sure you follow Element's contributing guide (中文 | English | Español | Français).
  • Make sure you are merging your commits to dev branch.
  • Add some descriptions and refer relative issues for you PR.

@qingdengyue
Copy link
Contributor Author

#15382

@element-bot
Copy link
Member

element-bot commented May 5, 2019

Deploy preview for element ready!

Built with commit f09a04d

https://deploy-preview-15394--element.netlify.com

@@ -147,7 +147,7 @@ export default {

i18nDate() {
const year = this.formatedDate.slice(0, 4);
const month = this.formatedDate.slice(5, 7).replace('0', '');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

别slice字符串了。

直接用 date.getMonth() + 1, 上面 year 也顺便改掉吧。

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.

4 participants