提交
This commit is contained in:
@ -77,6 +77,9 @@ const dataVal = ref("");
|
||||
const formRef = ref(null);
|
||||
const keyWordAdd = () => {
|
||||
if (!dataVal.value.length) return ElMessage.error(`请输入${title.value}`);
|
||||
if(!modelValue.value[fieldKey.value]){
|
||||
modelValue.value[fieldKey.value]=[]
|
||||
}
|
||||
modelValue.value[fieldKey.value].push(dataVal.value);
|
||||
dataVal.value = "";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user