修改问题

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

View File

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