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: support saving empty file #373

Merged
merged 1 commit into from
Jan 21, 2025
Merged

Conversation

Joe-Max-LK4Job
Copy link
Contributor

复现:当编辑器内容为空时,无法保存(ctrl+s)
原因:内容为空时,提前return
解决:删除判空逻辑

内容为空,无法保存 👇👇👇
image

内容不为空,可以保存 👇👇👇
image

Copy link

vercel bot commented Jan 21, 2025

@Joe-Max-LK4Job is attempting to deploy a commit to the purocean's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Jan 21, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
yn-api-doc ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 21, 2025 2:15pm

@purocean purocean merged commit 25f3617 into purocean:develop Jan 21, 2025
2 of 3 checks passed
@purocean
Copy link
Owner

感谢贡献代码,这段逻辑是最初时候因为某些原因加上大,现在的确不需要了

@Joe-Max-LK4Job
Copy link
Contributor Author

感谢作者 神速回答 : )

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.

2 participants