-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
After the jump of tag a, the channels of dart and js are no longer useful #652
Labels
bug
Something isn't working
Comments
let me check it out |
非常感谢您的回复。请问您查看了吗,可以正常使用吗 |
近期都在处理商业技术支持(24小时内响应),社区支持只能在空闲时间搞一下,平均响应时间在 1-2 周。 最近客户需求有点多,还请耐心等待 |
这个是在哪里定义的,你在哪里注入了一个脚本来实现了这个函数? |
您好,我在assets/plugin/base_plugin.js 中定义的
|
通过 script 标签引入的吗 |
是的 |
@chengming111 我尝试按你的步骤写了个 demo,但是依然没有复现,具体有关跳转的操作没有提供相应的代码。 https://github.com/andycall/webf-issue-demo-652 需要提供可复现的 demo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Affected version
0.16.2
Flutter versions
3.22.3
No same issues found.
Steps to Reproduce
After clicking the Submit button on the homepage, the loading animation can be displayed normally, but after the page jumps, an error message appears when clicking the Submit button.
Code example
There is a function 'submitMap' in plugin
submitMap(jsonString) {
return webf.methodChannel.invokeMethod('submitMap', jsonString);
}
in dart
case 'submitMap':
showLoading();
// Simulate processing, hide the loading after 2 seconds
await Future.delayed(Duration(seconds: 2));
hiddenLoading();
onSubmit(args[0]);
return null;
In html and js, I have
提交
const submit = document.getElementById('submit');
submit.addEventListener('click', async(e) => {
......
await window.form.submitMap(jsonString);
});
Expected results
loading animation
Actual results
The text was updated successfully, but these errors were encountered: