|
@@ -198,7 +198,7 @@ const items = ref([])
|
|
const deviceChoose = (rows) => {
|
|
const deviceChoose = (rows) => {
|
|
debugger
|
|
debugger
|
|
rows.forEach((it) => {
|
|
rows.forEach((it) => {
|
|
- const ifExist = list.value.find((item) => item.id === it.id)
|
|
|
|
|
|
+ const ifExist = list.value.find((item) => item.id === it.id&&item.deviceId===it.deviceId)
|
|
if (!ifExist) {
|
|
if (!ifExist) {
|
|
list.value.push(it)
|
|
list.value.push(it)
|
|
console.log(JSON.stringify(it))
|
|
console.log(JSON.stringify(it))
|