diff --git a/openflare_server/web/features/proxy-routes/components/proxy-routes-page.tsx b/openflare_server/web/features/proxy-routes/components/proxy-routes-page.tsx index af0e12ab..978c27ef 100644 --- a/openflare_server/web/features/proxy-routes/components/proxy-routes-page.tsx +++ b/openflare_server/web/features/proxy-routes/components/proxy-routes-page.tsx @@ -516,19 +516,6 @@ function parseUpstreams(rawValue: string) { } } -function buildCachePolicyLabel(policy: string) { - switch (policy) { - case 'suffix': - return '按后缀'; - case 'path_prefix': - return '按前缀'; - case 'path_exact': - return '按路径'; - default: - return '按 URL'; - } -} - function getCacheRulesHint(policy: string) { switch (policy) { case 'suffix': @@ -1537,35 +1524,20 @@ export function ProxyRoutesPage() { 域名 源站地址 HTTPS - 缓存 - 请求头 状态 备注 - 更新时间 操作 {routes.map((route) => { - const headers = parseCustomHeaders(route.custom_headers); - const cacheRules = parseCacheRules(route.cache_rules); - const upstreams = parseUpstreams(route.upstreams); - return ( {route.domain} -
-

{route.origin_url}

-

- 回源主机名: {route.origin_host || '$host'} -

-

- 上游数量: {Math.max(upstreams.length, 1)} -

-
+

{route.origin_url}

{route.enable_https ? ( @@ -1583,33 +1555,6 @@ export function ProxyRoutesPage() { )} - - {route.cache_enabled ? ( -
- -

- {cacheRules.length > 0 - ? `${cacheRules.length} 条规则` - : '按 URL 粒度缓存'} -

-
- ) : ( - - )} - - - 0 ? `${headers.length} 条` : '无' - } - variant={headers.length > 0 ? 'success' : 'warning'} - /> - {route.remark || '—'} - - {formatDateTime(route.updated_at)} -