1***@qq.com
1***@qq.com
  • 发布:2019-09-02 18:08
  • 更新:2019-09-02 18:08
  • 阅读:738

【报Bug】两个页面的picker 使用对象数组 ,操作一遍后,会导致不能使用

分类:uni-app

详细问题描述

两个页面的picker 使用对象数组 ,操作一遍后,会导致
TypeError: Cannot read property 'name' of undefined
at Vue$3.render (commodityinput.vue?93f9:185)
at Vue$3.Vue._render (index.js:3637)
at Vue$3.updateComponent (index.js:2202)
at Watcher.get (index.js:2523)
at Watcher.run (index.js:2601)
at flushSchedulerQueue (index.js:2374)
at Array.<anonymous> (index.js:683)
at nextTickHandler (index.js:627)

<picker @change="bindPickerChange" :value="index" :range="objectArray" range-key="name">  
                                <input class="font28 selectright selectright2" :value="objectArray[index].name" disabled="disabled" />  
                            </picker>
objectArray: [{  
                        id: 'CNY',  
                        name: '人民币'  
                    },  
                    {  
                        id: 'USD',  
                        name: '美元'  
                    },  
                    {  
                        id: 'EUR',  
                        name: '欧元'  
                    },  
                    {  
                        id: 'JPY',  
                        name: '日元'  
                    },  
                    {  
                        id: 'HKD',  
                        name: '港元'  
                    },  
                ],  

同时再点击其他页面按钮会无效。

联系方式

18811386230

2019-09-02 18:08 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复