在配置页面中添加302跳转状态的可视化标识,增强用户界面的交互性和可读性。

This commit is contained in:
wood chen 2025-06-02 08:37:11 +08:00
parent 35db35e4ce
commit 0db0b1f6b1

View File

@ -825,7 +825,14 @@ export default function ConfigPage() {
<Card key={`${path}-card`} className="overflow-hidden">
<CardHeader className="pb-2">
<CardTitle className="text-lg flex justify-between items-center">
<span className="font-medium truncate" title={path}>{path}</span>
<div className="flex items-center gap-2">
<span className="font-medium truncate" title={path}>{path}</span>
{(typeof target === 'object' && target.RedirectMode) && (
<span className="text-xs bg-green-100 text-green-800 px-1.5 py-0.5 rounded">
302
</span>
)}
</div>
<div className="flex space-x-1">
<Button
variant="ghost"