mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: enhance validation for required form fields
--bug=1052705 --user=刘瑞斌 【工作流】添加”开关”按钮参数, 默认值为关闭,保存之后页面还会提示“请填写所填字段” https://www.tapd.cn/57709429/s/1675323
This commit is contained in:
parent
66f674f651
commit
f9c4e96f97
|
|
@ -303,7 +303,9 @@ const checkInputParam = () => {
|
|||
for (let i = 0; i < inputFieldList.value.length; i++) {
|
||||
if (
|
||||
inputFieldList.value[i].required &&
|
||||
!form_data_context.value[inputFieldList.value[i].field]
|
||||
(form_data_context.value[inputFieldList.value[i].field] === null ||
|
||||
form_data_context.value[inputFieldList.value[i].field] === undefined ||
|
||||
form_data_context.value[inputFieldList.value[i].field] === '')
|
||||
) {
|
||||
MsgWarning(t('chat.tip.requiredMessage'))
|
||||
return false
|
||||
|
|
|
|||
Loading…
Reference in New Issue