fix(*): 资源与技能 - 精简列表载荷并禁止对象存储静默降级

This commit is contained in:
ddcat666
2026-09-24 23:57:13 +08:00
parent 5528dbc3e4
commit d1acc8f6f3
16 changed files with 271 additions and 99 deletions

View File

@@ -73,6 +73,11 @@ export function changesRequireOSSRetest(changedValues: Record<string, unknown>)
return Object.keys(changedValues).some((key) => CONNECTION_FIELDS.has(key));
}
export function validateOSSConnectionDraft(input: OSSConnectionTestDraft) {
if (!trimConnectionValue(input.bucket)) return "请填写对象存储 Bucket";
return "";
}
export function normalizeOSSConnectionTestInput(input: OSSConnectionTestDraft): OSSConnectionTestInput {
return {
provider: input.provider,