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

iframe使用workFlow onload触发 #61

Open
HiAurora opened this issue Mar 10, 2023 · 1 comment
Open

iframe使用workFlow onload触发 #61

HiAurora opened this issue Mar 10, 2023 · 1 comment

Comments

@HiAurora
Copy link

情况:html页面使用vue,点击按钮展现iframe src引入的流程引擎-workflow-bpmn-modeler,根据后端返回的信息实现数据回显,
问题:多次点击展现iframe, onload只触发一次,数据缓存不能正确回显对应id的流程
解决:src添加了随机数后缀强制触发iframe重新渲染;但是用户使用效果不满意,
期望:iframe缓存,但是onload可以每次点击都触发;或者赋值内容可以写道其他地方吗?有没有其他办法呢?

@GoldSubmarine
Copy link
Owner

GoldSubmarine commented Mar 10, 2023

多次点击展现iframe, onload只触发一次

没有太看懂你的问题,不过是不是没有销毁iframe啊?每次点击都创建新的iframe

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