mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-24 12:44:18 +08:00
feat: skip optional template values in validation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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 ??
|
||||
|
||||
Reference in New Issue
Block a user