优化IPBox交互/优化TOA文字提示

This commit is contained in:
刘祥超
2021-12-03 11:00:20 +08:00
parent ae412909f6
commit 5fe15a85fd
3 changed files with 11 additions and 8 deletions

View File

@@ -1,14 +1,17 @@
Vue.component("ip-box", {
props: [],
props: ["v-ip"],
methods: {
popup: function () {
let e = this.$refs.container
let text = e.innerText
if (text == null) {
text = e.textContent
let ip = this.vIp
if (ip == null || ip.length == 0) {
let e = this.$refs.container
ip = e.innerText
if (ip == null) {
ip = e.textContent
}
}
teaweb.popup("/servers/ipbox?ip=" + text, {
teaweb.popup("/servers/ipbox?ip=" + ip, {
width: "50em",
height: "30em"
})