修改问题

This commit is contained in:
xhf 2025-02-27 17:31:43 +08:00
parent 378fdecb89
commit 8e35679b2c

View File

@ -462,15 +462,26 @@ const changeIsDrag = () => {
}
const handleChooseRoute = (val, i) => {
console.log('============================', val)
// console.log('============================', val)
if (lineList.value.length) {
lineList.value.forEach((item, index) => {
if(val.isSelect){
lineList.value.forEach((item, index) => {
if (index == i) {
item.isSelect = false
} else {
item.isSelect = false
}
})
} else {
lineList.value.forEach((item, index) => {
if (index == i) {
item.isSelect = true
} else {
item.isSelect = false
}
})
}
}
}