feat: 优化外链标签样式,使用系统主题颜色

This commit is contained in:
Guo Tiantian
2025-08-28 23:17:41 +08:00
parent 01387a53b4
commit bcc8c03ca2
4 changed files with 3062 additions and 388 deletions
@@ -236,7 +236,6 @@ const extractAffixTags = (routes: RouteRecordRaw[], basePath = "/"): TagView[] =
fullPath,
name: String(route.name || ""),
title: route.meta.title || "no-name",
icon: (route as any).icon || route.meta?.icon,
affix: true,
keepAlive: route.meta.keepAlive || false,
});
@@ -261,10 +261,18 @@ onUnmounted(() => {
.external-link-badge {
font-size: 10px;
font-weight: 400;
background-color: #409EFF;
background-color: var(--el-color-primary);
color: #ffffff;
padding: 1px 4px;
border-radius: 2px;
line-height: 1.2;
transition: all 0.3s ease;
}
// 暗色主题适配 - 使用项目标准的暗色主题选择器
html.dark .external-link-badge {
background-color: var(--el-color-primary-dark-2);
color: var(--el-text-color-primary);
}
}
}