fix: Fix crash when adding custom spec if specs is null (#9708)

This commit is contained in:
sheng.wang
2025-07-28 18:00:35 +08:00
committed by GitHub
parent 57b76d97ec
commit db8fa144eb
@@ -834,7 +834,7 @@ const search = async () => {
form.type = res.data.type;
form.specCustom = res.data.specCustom;
form.spec = res.data.spec;
form.specs = res.data.specs;
form.specs = res.data.specs || [];
if (!form.specCustom && form.spec) {
let objs = [];
for (const item of res.data.spec.split(',')) {