CN-592 域名递归解析样式优化: 第三列 dnsType 解析结果不对,进行修正

This commit is contained in:
hyx
2022-06-10 10:35:51 +08:00
parent 08ee1968e9
commit 3ecfcd2752
5 changed files with 26 additions and 16 deletions

View File

@@ -52,7 +52,7 @@ export default {
},
data () {
return {
/* dnsRecordType:[
dnsRecordType: [
'A',
'AAAA',
'AFSDB',
@@ -80,7 +80,7 @@ export default {
'SRV',
'TLSA',
'TXT'
] */
]
}
},
methods: {
@@ -161,6 +161,16 @@ export default {
specialArray[4] = specialArray[4] + ' ' + i
}
})
const dnsTypes = specialArray[4].split(separator)
let isDnsTypeFinish = false
dnsTypes.forEach(item => {
if (!isDnsTypeFinish && this.dnsRecordType.indexOf(item) > -1) {
specialArray[3] = specialArray[3] + ' ' + item
specialArray[4] = specialArray[4].substring(specialArray[4].indexOf(item) + item.length)
} else {
isDnsTypeFinish = true
}
})
rowArray = specialArray
}
const obj = {

View File

@@ -69,9 +69,9 @@ export default {
this.$refs[`detectionRow${this.collapseIndex}`].collapse()
},
handleScroll (e) {
if(e.target.className==="cn-detection__shadow"){
let container = document.getElementById("cnContainer")
container.scrollTop += e.deltaY/2
if (e.target.className === 'cn-detection__shadow') {
const container = document.getElementById('cnContainer')
container.scrollTop += e.deltaY / 2
}
}
},

View File

@@ -116,9 +116,9 @@ export default {
this.$emit('next', val)
},
handleScrollEntity (e) {
if(e.target.className==="cn-entity__shadow"){
let container = document.getElementById("cnContainer")
container.scrollTop += e.deltaY/2
if (e.target.className === 'cn-entity__shadow') {
const container = document.getElementById('cnContainer')
container.scrollTop += e.deltaY / 2
}
}
},