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

const blob: Blob | null = await cropper.getBlob()执行到这里有概率会导致页面刷新 #44

Open
ltj-hope opened this issue Oct 16, 2024 · 3 comments

Comments

@ltj-hope
Copy link

ltj-hope commented Oct 16, 2024

const blob: Blob | null = await cropper.getBlob()执行到这里有概率会导致页面刷新
在vue3使用的时候,是还有什么功能会影响到吗

@ltj-hope
Copy link
Author

原来不是这个的问题,是getResult点击事件是由botton触发,当这个功能在form表单实现时候,有概率触发form表单的提交

@chengpeiquan
Copy link
Owner

嗯嗯,如果 form 里只有一个 input 之类的元素,会有这样的默认行为,可以通过对 form 限制 preventDefault 屏蔽这个行为

@ltj-hope
Copy link
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

No branches or pull requests

2 participants