mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-08-04 19:45:34 +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) {
|
for (const [key, config] of templateValueEntries) {
|
||||||
|
// 跳过可选字段
|
||||||
|
if (config.optional) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
const entry = templateValues[key];
|
const entry = templateValues[key];
|
||||||
const resolvedValue = (
|
const resolvedValue = (
|
||||||
entry?.editorValue ??
|
entry?.editorValue ??
|
||||||
|
|||||||
Reference in New Issue
Block a user