mirror of
https://gitee.com/IrisVega/frp.git
synced 2024-11-01 22:31:29 +08:00
738c53ce47
* web: update * web: fix el-popover bug
28 lines
558 B
Vue
28 lines
558 B
Vue
<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>
|