problem description
<a :href=""telecontrol:"+ itemIp" class="open-terminal">
let obj
try {
obj = window.open("telecontrol:192.168.1.54", "_parent")
obj.addEventListener("onclose", (e) => {
console.log("")
})
obj.addEventListener("oncancel", (e) => {
console.log("")
})
} catch (error) {
this.$message.error(error)
}
console.log(obj, "obj")
the environmental background of the problems and what methods you have tried
it seems useless for me to listen to the event above. I don"t know whether my event is useless or the method is useless.
related codes
/ / Please paste the code text below (do not replace the code with pictures)
what result do you expect? What is the error message actually seen?
expect the result to capture that the user clicked to open the hyperlink failed, even if the user clicked to cancel