TypeError: Cannot read properties of undefined (reading 'bar_text')
找不到变量
糊涂的秋风
- 发布:2024-08-07 10:46
- 更新:2024-08-07 11:06
- 阅读:81
糊涂的秋风 (作者)
<up-notice-bar color="#00aaff" bgColor="#FFFFFF" :text="String(index_info.bar_text)"></up-notice-bar>
<script>
index_info.bar_text:'test'
}}
2024-08-07 10:59
BFC
回复 糊涂的秋风: 这个data写法不支持把, 换成 return { index_info: {bar_text: text} } 试试
2024-08-07 11:14
糊涂的秋风 (作者)
回复 BFC: export default {
return {
index_info: {bar_text: text},
}}
报错
2024-08-07 11:17