diff --git a/src/views/is/func/TreePanel/TreePanel.vue b/src/views/is/func/TreePanel/TreePanel.vue index e50dc8f..94b0bef 100644 --- a/src/views/is/func/TreePanel/TreePanel.vue +++ b/src/views/is/func/TreePanel/TreePanel.vue @@ -200,7 +200,7 @@ const handleConfirm = async (valid, data) => { const res = await postTreeData({ ...data, type: formData.type, - parentId: currentNode.value.id + parentId: formData.type === 'oem' ? null : currentNode.value.id }) if (res.code === 200) { dialogVisible.value = false