点击访问日志的IP弹出该IP最近访问日志

This commit is contained in:
刘祥超
2021-07-25 19:58:30 +08:00
parent 0a9cea722c
commit 5a057857dc
2 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
Vue.component("ip-box", {
props: [],
methods: {
popup: function () {
let e = this.$refs.container
let text = e.innerText
if (text == null) {
text = e.textContent
}
teaweb.popup("/servers/ipbox?ip=" + text, {
width: "50em",
height: "30em"
})
}
},
template: `<span @click.prevent="popup()" ref="container"><slot></slot></span>`
})