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

路由切换后canvas没有生成快照 #101

Open
FlyingBig opened this issue Jul 22, 2021 · 4 comments
Open

路由切换后canvas没有生成快照 #101

FlyingBig opened this issue Jul 22, 2021 · 4 comments

Comments

@FlyingBig
Copy link

FlyingBig commented Jul 22, 2021

有一个网站含有A,B两个路由。
A路由有一个canvas(填充了图片或者颜色)
B路由只包含一个录制按钮(调用new Recorder())

从B路由开始录制后在进入A路由,发现canvas没有填充图片或者颜色(watcher 没有emit["RecordType"])

@cbbfcd
Copy link
Contributor

cbbfcd commented Jul 22, 2021

可以提供一个 codesandbox demo 复现问题吗?

@FlyingBig
Copy link
Author

https://codesandbox.io/s/timecar-b8sfb
demo 如上。
respect。huangfei :)

@oct16
Copy link
Owner

oct16 commented Jul 22, 2021

原因是目前只观测了静态的 Canvas,路由切换后动态插入了新的 CanvasElement 没有去 Watch
临时的解决方案是,销毁后重新启动实例,设置 keep:true
近期会发布新版本修复已知问题,感谢报告

@FlyingBig
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

3 participants