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
问题描述 在v-for循环内,v-if的元素里面使用filter编译报错 [Vue warn]: Error in render: "TypeError: Cannot read property 'type' of undefined" Cannot read property 'type' of undefined
复现步骤
<view v-for="item in list" :key="item.type"> <template v-if="item.type === 1"> <view>{{item.type | test}}</view> </template> </view>
[或者可以直接贴源代码]
预期结果 正常的编译
实际结果 控制台报错 [Vue warn]: Error in render: "TypeError: Cannot read property 'type' of undefined" Cannot read property 'type' of undefined 元素无法显示
系统信息:
补充信息 [可选] [根据你的分析,出现这个问题的原因可能在哪里?]
The text was updated successfully, but these errors were encountered:
fix: 修复 v-for 嵌套 v-if 时,编译到小程序端运行报错的问题 fixed #2011
a52d8f9
原来是编译器bug 找了半天原因
Sorry, something went wrong.
a7dee55
zhetengbiji
No branches or pull requests
问题描述
在v-for循环内,v-if的元素里面使用filter编译报错
[Vue warn]: Error in render: "TypeError: Cannot read property 'type' of undefined"
Cannot read property 'type' of undefined
复现步骤
[或者可以直接贴源代码]
预期结果
正常的编译
实际结果
控制台报错
[Vue warn]: Error in render: "TypeError: Cannot read property 'type' of undefined"
Cannot read property 'type' of undefined
元素无法显示
系统信息:
补充信息
[可选]
[根据你的分析,出现这个问题的原因可能在哪里?]
The text was updated successfully, but these errors were encountered: