We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
代码:
<template> <div> <div v-if="obj"> <div v-if="obj.a"></div> </div> </div> </template> <script> export default { data() { return { obj: null } } } </script>
现象:
报错 Cannot read property 'a' of undefined;
Cannot read property 'a' of undefined;
原因:
第一个调整判断为 false 时,后面的条件判断不应该执行,但是在 render 方法里没有对 v-if 嵌套关系进行判断。
The text was updated successfully, but these errors were encountered:
test: update test for v-if #33
19a16c1
c119261
No branches or pull requests
代码:
现象:
报错
Cannot read property 'a' of undefined;
原因:
第一个调整判断为 false 时,后面的条件判断不应该执行,但是在 render 方法里没有对 v-if 嵌套关系进行判断。
The text was updated successfully, but these errors were encountered: