mirror of
https://github.com/fatedier/frp.git
synced 2025-04-25 09:11:26 +00:00
27 lines
562 B
Vue
27 lines
562 B
Vue
<template>
|
|
<ProxyView :proxies="proxies" proxyType="stcp" />
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { ref } from 'vue'
|
|
import { STCPProxy } from '../utils/proxy.js'
|
|
import ProxyView from './ProxyView.vue'
|
|
|
|
let proxies = ref<STCPProxy[]>([])
|
|
|
|
const fetchData = () => {
|
|
fetch('../api/proxy/stcp', { credentials: 'include' })
|
|
.then((res) => {
|
|
return res.json()
|
|
})
|
|
.then((json) => {
|
|
for (let proxyStats of json.proxies) {
|
|
proxies.value.push(new STCPProxy(proxyStats))
|
|
}
|
|
})
|
|
}
|
|
fetchData()
|
|
</script>
|
|
|
|
<style></style>
|