面授更改需求

This commit is contained in:
NiSen
2023-07-20 15:28:04 +08:00
parent c682164ab6
commit 2c904f3387

View File

@@ -892,8 +892,8 @@ export default defineComponent({
postData.sourceBelongId, postData.sourceBelongId,
]; ];
console.log("checkList", checkList); console.log("checkList", checkList);
if (state.tags_val.length < 3) { if (state.tags_val.length < 3 && state.tags_val.length > 0 ) {
return message.error("最多支持5个关键字/最少录入3个关键字"); return message.error("最少录入3个关键字");
} }
if(!postData.organizationIds){ if(!postData.organizationIds){
return message.error("请选择目标人群的归属组织"); return message.error("请选择目标人群的归属组织");
@@ -1036,7 +1036,7 @@ export default defineComponent({
const handleTagChange = () => { const handleTagChange = () => {
if (state.tags_val.length >= 5) { if (state.tags_val.length >= 5) {
return message.error("最多支持5个关键字/最少录入3个关键字"); return message.error("最多支持5个关键字");
} }
if (state.tags_val_single) { if (state.tags_val_single) {
state.tags_val.push(state.tags_val_single); state.tags_val.push(state.tags_val_single);