模版配置限制

This commit is contained in:
ChenXinXin committed 2024-05-14 16:41:38 +08:00
1 parent 391aea1034
commit c06d8f1fff
3 files changed
+23 -29

No files matched your search

@@ -295,8 +295,8 @@ Vue.component("form-item-list-generator", {
// 检查单选多选是否还有选项
this.formItemList.forEach(element => {
if(['single', 'multiple'].includes(element.type) && !(element.optionList && element.optionList.length)){
window.vtoast.fail("存在选择题没有选项!");
throw new Error("存在选择题没有选项!")
window.vtoast.fail("表单设置:存在选择题没有选项!");
throw new Error("表单设置:存在选择题没有选项!")
}
});