mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-15 04:41:25 +08:00
点击访问日志的IP弹出该IP最近访问日志
This commit is contained in:
18
web/public/js/components/iplist/ip-box.js
Normal file
18
web/public/js/components/iplist/ip-box.js
Normal 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>`
|
||||
})
|
||||
Reference in New Issue
Block a user