feat: skip optional template values in validation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-02-16 05:42:29 +00:00
committed by Jason
parent 750e1060e8
commit 657b7c29c2
@@ -263,6 +263,10 @@ export function useTemplateValues({
}
for (const [key, config] of templateValueEntries) {
// 跳过可选字段
if (config.optional) {
continue;
}
const entry = templateValues[key];
const resolvedValue = (
entry?.editorValue ??