邓洁 : 修复bug

This commit is contained in:
dengj
2023-12-29 13:06:35 +08:00
parent a87b58bea7
commit a473317022
4 changed files with 116 additions and 71 deletions

View File

@@ -269,7 +269,6 @@ const handleGoSiteOrIndex = () => {
} else if (type === 'i') {
router.push('/')
}
}
const getList = () => {
getTunnelList({
@@ -333,6 +332,15 @@ const handleGoToEditTunnel = (tunnelId) => {
const handleChooseAll = () => {
tunnelList.value.map(item => {
item.checked = !item.checked
if(item.checked&&!item.isDefault){
tunnelIds.value.push(item.tunnelId)
}else if(!item.checked&&!item.isDefault){
tunnelIds.value.map((newItem, index) => {
if (newItem === item.tunnelId) {
tunnelIds.value.splice(index, 1)
}
})
}
})
}
const handleEditDevice = (tunnelId) => {