This commit is contained in:
parent
64c4902f67
commit
d87c6cc34f
|
|
@ -245,15 +245,17 @@ onLoad((opt) => {
|
|||
|
||||
onShow((opt) => {
|
||||
uni.$on('paramsReceived', (data) => {
|
||||
console.log('🚀 ~ uni.$on ~ data:', data)
|
||||
if (data.params) {
|
||||
codeDeviceList.value.push({
|
||||
codeDeviceList.value.unshift({
|
||||
...data.params,
|
||||
checked: false, // 默认未选中
|
||||
checked: true, // 默认未选中
|
||||
})
|
||||
// 去重
|
||||
codeDeviceList.value = [
|
||||
...new Map(codeDeviceList.value.map((item) => [item.maId, item])).values(),
|
||||
]
|
||||
allChecked.value = codeDeviceList.value.every((e) => e.checked)
|
||||
}
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in New Issue