feat: 自行开发设计 ui样式优化 超管端-控制台 相关的页面

This commit is contained in:
zhanjunhao
2026-11-09 21:45:37 +08:00
parent 9fc5fd212d
commit 28e924e371
242 changed files with 9242 additions and 5043 deletions
+8 -1
View File
@@ -171,7 +171,14 @@ export function validateField(key, rawValue) {
export function validateSettings(values) {
return Object.fromEntries(
[...new Set(TABS.flatMap((tab) => tab.fields))]
.map((key) => [key, validateField(key, values[key])])
.map((key) => [
key,
key === 'insights' &&
!values.insights?.categories?.length &&
!values.insights?.articles?.length
? '请完善动态与洞察的配置'
: validateField(key, values[key]),
])
.filter(([, error]) => error),
);
}