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

报错兼容 #2263

Closed
lovelyqun opened this issue Apr 27, 2023 · 2 comments · Fixed by #2426
Closed

报错兼容 #2263

lovelyqun opened this issue Apr 27, 2023 · 2 comments · Fixed by #2426

Comments

@lovelyqun
Copy link

What problem does this feature solve?(这个功能解决的问题)

解决了navbar 报错问题

What does the proposed API look like?(期望的 API)

setTimeout(function (
query.select(".navBarHtml").boundingClientRect();
query.exec(function (res) //页面加载慢的时候 res= [null]
navHeight.value = res[0]?.height; //需要先判断res是否为空,否则会报错
})
),500):

@eiinu eiinu added the Need Reproduce 需要提供可复现的代码用于问题排查 label Apr 27, 2023
@github-actions
Copy link

你好 @lovelyqun, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。请确保选择准确的版本。

@lovelyqun
Copy link
Author

这个从代码层面就能看出来会报错的
比较简单,无需复现
其次也是目前没有时间搞一个仓库

@eiinu eiinu removed the Need Reproduce 需要提供可复现的代码用于问题排查 label Jul 13, 2023
@eiinu eiinu linked a pull request Jul 13, 2023 that will close this issue
15 tasks
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

Successfully merging a pull request may close this issue.

2 participants