forked from Mxmilu666/frp
web: fix el-popover bug (#3413)
* web: update * web: fix el-popover bug
This commit is contained in:
26
web/frps/src/components/ProxiesTCP.vue
Normal file
26
web/frps/src/components/ProxiesTCP.vue
Normal 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>
|
||||
Reference in New Issue
Block a user