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

H5端完全使用vue-router时,canvas无法抓取,报错:Error in mounted hook: "TypeError: Cannot read properties of undefined (reading 'id')" #466

Open
YanXingDong opened this issue Nov 29, 2024 · 0 comments

Comments

@YanXingDong
Copy link

问题描述
H5端完全使用vue-router;
vueRouterDev: true;
页面中使用canvas画布
代码:
报错:Error in mounted hook: "TypeError: Cannot read properties of undefined (reading 'id')"
TypeError: Cannot read properties of undefined (reading 'id')
复现步骤
[复现问题的步骤]
开启vueRouterDev: true;
在任意页面
查看控制台信息
image

预期结果
可以抓取到canvas并绘制

系统信息:

  • 发行平台: H5平台
  • HBuilderX版本4.36
  • 项目创建方法 HBuilderX
  • 设备信息 Chrome
  • uni-simple-router版本 2.0.7
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

1 participant