web: fix el-popover bug (#3413)

* web: update

* web: fix el-popover bug
This commit is contained in:
fatedier
2023-04-16 16:43:44 +08:00
committed by GitHub
parent db52f07d34
commit 738c53ce47
21 changed files with 233 additions and 177 deletions

View File

@@ -0,0 +1,26 @@
<template>
<ProxyView :proxies="proxies" proxyType="tcp" />
</template>
<script setup lang="ts">
import { ref } from 'vue'
import { TCPProxy } from '../utils/proxy.js'
import ProxyView from './ProxyView.vue'
let proxies = ref<TCPProxy[]>([])
const fetchData = () => {
fetch('../api/proxy/tcp', { credentials: 'include' })
.then((res) => {
return res.json()
})
.then((json) => {
for (let proxyStats of json.proxies) {
proxies.value.push(new TCPProxy(proxyStats))
}
})
}
fetchData()
</script>
<style></style>