非空判断
This commit is contained in:
@@ -164,6 +164,12 @@ const onSubmit = async () => {
|
||||
return;
|
||||
}
|
||||
|
||||
// 额外验证话术内容
|
||||
if (!state.formData.description || state.formData.description === '<p><br></p>' || state.formData.description.trim() === '<p><br></p>') {
|
||||
ElMessage.warning('产品详情内容不能为空');
|
||||
return;
|
||||
}
|
||||
|
||||
// 根据ID判断是新增还是修改
|
||||
if (state.formData.id === 0) {
|
||||
// 新增产品
|
||||
|
||||
Reference in New Issue
Block a user