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() {
{route.origin_url}
-- 回源主机名: {route.origin_host || '$host'} -
-- 上游数量: {Math.max(upstreams.length, 1)} -
-{route.origin_url}
- {cacheRules.length > 0 - ? `${cacheRules.length} 条规则` - : '按 URL 粒度缓存'} -
-