web/frps: use API v2 for client and proxy details (#5386)

This commit is contained in:
fatedier
2026-06-30 01:33:57 +08:00
committed by GitHub
parent 7c343fc6e7
commit 7fe152e3aa
3 changed files with 14 additions and 6 deletions

View File

@@ -241,7 +241,7 @@ import {
Tickets,
Location,
} from '@element-plus/icons-vue'
import { getProxyByName } from '../api/proxy'
import { getProxyByNameV2 } from '../api/proxy'
import { getServerInfo } from '../api/server'
import {
BaseProxy,
@@ -365,9 +365,9 @@ const fetchProxy = async () => {
}
try {
const data = await getProxyByName(name)
const data = await getProxyByNameV2(name)
const info = await fetchServerInfo()
const type = data.conf?.type || ''
const type = data.type || data.conf?.type || ''
if (type === 'tcp') {
proxy.value = new TCPProxy(data)