1
0
mirror of https://github.com/fatedier/frp.git synced 2025-05-03 02:08:26 +00:00
fatedier 738c53ce47
web: fix el-popover bug ()
* web: update

* web: fix el-popover bug
2023-04-16 16:43:44 +08:00

42 lines
1.0 KiB
Vue

<template>
<ProxyView :proxies="proxies" proxyType="https" />
</template>
<script setup lang="ts">
import { ref } from 'vue'
import { HTTPSProxy } from '../utils/proxy.js'
import ProxyView from './ProxyView.vue'
let proxies = ref<HTTPSProxy[]>([])
const fetchData = () => {
let vhost_https_port: number
let subdomain_host: string
fetch('../api/serverinfo', { credentials: 'include' })
.then((res) => {
return res.json()
})
.then((json) => {
vhost_https_port = json.vhost_https_port
subdomain_host = json.subdomain_host
if (vhost_https_port == null || vhost_https_port == 0) {
return
}
fetch('../api/proxy/https', { credentials: 'include' })
.then((res) => {
return res.json()
})
.then((json) => {
for (let proxyStats of json.proxies) {
proxies.value.push(
new HTTPSProxy(proxyStats, vhost_https_port, subdomain_host)
)
}
})
})
}
fetchData()
</script>
<style></style>