feat(proxy): add instance proxy display

- Change API endpoint and parameter from instanceName to instanceID for getInstanceProxies
- Update proxy list UI with type badge and structured details display
- Add async/await for mounted lifecycle hooks
- Improve proxy item styling with better spacing and visual hierarchy
This commit is contained in:
2026-03-21 09:14:25 +08:00
parent 2e445de6e3
commit 3e4bd77641
3 changed files with 89 additions and 19 deletions

View File

@@ -85,8 +85,8 @@ export const instanceApi = {
api.post('/frpcAct/instanceMgr/restart', { instanceName }),
getInstanceLogs: (instanceName) =>
api.get('/frpcAct/instanceMgr/logs', { params: { instanceName } }),
getInstanceProxies: (instanceName) =>
api.get('/frpcAct/instanceMgr/proxies', { params: { instanceName } }),
getInstanceProxies: (instanceID) =>
api.get('/frpcAct/proxyMgr/list', { params: { instanceID } }),
createProxy: (instanceID, proxyInfo) =>
api.post('/frpcAct/proxyMgr/create', { instanceID, proxyInfo })
};