This commit is contained in:
2022-09-21 10:34:50 +08:00
parent b5c1eeb94c
commit ab0b5f9011
15 changed files with 64 additions and 29 deletions

View File

@ -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 = "";
};