refactor(src): 优化导航栏和页面路由

- 更新导航栏显示内容,增加对战信息页面
- 调整首页路由,改为角色列表页面
- 更新 CharacterDetail 页面,增加职业和星级信息展示
- 修改 Characters 页面,使用中文标签替换英文
This commit is contained in:
hxt
2025-05-29 23:02:13 +08:00
parent 67936f382d
commit 6636b71baf

View File

@@ -542,7 +542,7 @@ const CharacterDetail: React.FC = () => {
)}
{/* 右上角星级信息 */}
<div className="absolute top-2 right-16 flex flex-col gap-1 rounded-lg p-1">
{Array(parseInt(artifact.rarity)).fill(0).map((_, i) => (
{Array(Math.max(0, Math.min(parseInt(artifact.rarity) || 0, 5))).fill(0).map((_, i) => (
<img key={i} src="/pic/star.png" alt="star" className="w-6 h-6"/>
))}
</div>