mirror of
https://github.com/fatedier/frp.git
synced 2025-07-26 15:50:39 +07:00
web: fix el-popover bug (#3413)
* web: update * web: fix el-popover bug
This commit is contained in:
27
web/frps/src/components/ProxiesUDP.vue
Normal file
27
web/frps/src/components/ProxiesUDP.vue
Normal file
@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<ProxyView :proxies="proxies" proxyType="udp" />
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
import { UDPProxy } from '../utils/proxy.js'
|
||||
import ProxyView from './ProxyView.vue'
|
||||
|
||||
let proxies = ref<UDPProxy[]>([])
|
||||
|
||||
const fetchData = () => {
|
||||
fetch('../api/proxy/udp', { credentials: 'include' })
|
||||
.then((res) => {
|
||||
return res.json()
|
||||
})
|
||||
.then((json) => {
|
||||
for (let proxyStats of json.proxies) {
|
||||
proxies.value.push(new UDPProxy(proxyStats))
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
fetchData()
|
||||
</script>
|
||||
|
||||
<style></style>
|
Reference in New Issue
Block a user