Commit 7b7e9243 authored by 周成波's avatar 周成波

bug

parent c7d535ab
...@@ -273,7 +273,7 @@ const onAdaptSceneRoles = async () => { ...@@ -273,7 +273,7 @@ const onAdaptSceneRoles = async () => {
} }
if (!form.all_roles) { if (!form.all_roles) {
ElMessage({ ElMessage({
message: `总角色为空`, message: `总角色不能为空`,
type: "error", type: "error",
}); });
return; return;
...@@ -308,7 +308,7 @@ const onAdaptOneSceneRoles = async (item: any) => { ...@@ -308,7 +308,7 @@ const onAdaptOneSceneRoles = async (item: any) => {
} }
if (!form.all_roles) { if (!form.all_roles) {
ElMessage({ ElMessage({
message: `总角色为空`, message: `总角色不能为空`,
type: "error", type: "error",
}); });
return; return;
...@@ -370,16 +370,22 @@ const onDraw = async () => { ...@@ -370,16 +370,22 @@ const onDraw = async () => {
}); });
return; return;
} }
let is_all_ok = true;
for (const item of form.adapt_result_json) { for (const item of form.adapt_result_json) {
if (!item.场景关键词) { if (!item.场景关键词) {
ElMessage({ ElMessage({
message: `分镜 ${item.编号} 场景关键词不能为空`, message: `分镜 ${item.编号} 场景关键词不能为空`,
type: "error", type: "error",
}); });
return; is_all_ok = false;
break;
} }
};
if (is_all_ok) {
for (const item of form.adapt_result_json) {
onDrawOne(item); onDrawOne(item);
} }
}
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment