This commit is contained in:
bb_pan 2025-06-13 09:37:42 +08:00
parent 64c4902f67
commit d87c6cc34f
2 changed files with 4 additions and 2 deletions

View File

@ -245,15 +245,17 @@ onLoad((opt) => {
onShow((opt) => { onShow((opt) => {
uni.$on('paramsReceived', (data) => { uni.$on('paramsReceived', (data) => {
console.log('🚀 ~ uni.$on ~ data:', data)
if (data.params) { if (data.params) {
codeDeviceList.value.push({ codeDeviceList.value.unshift({
...data.params, ...data.params,
checked: false, // checked: true, //
}) })
// //
codeDeviceList.value = [ codeDeviceList.value = [
...new Map(codeDeviceList.value.map((item) => [item.maId, item])).values(), ...new Map(codeDeviceList.value.map((item) => [item.maId, item])).values(),
] ]
allChecked.value = codeDeviceList.value.every((e) => e.checked)
} }
}) })
}) })