Commit 41f23df7 authored by 郭铭瑶's avatar 郭铭瑶 🤘

修改新增标签id

parent 6f6f8f5f
...@@ -472,10 +472,11 @@ function submitNewNode(e) { ...@@ -472,10 +472,11 @@ function submitNewNode(e) {
) )
if (curTag) { if (curTag) {
obj = { obj = {
id: curTag.id, id: curTag.value,
labelName: null, labelName: null,
} }
} }
console.log('123', tagOptions.value, item.labelName)
return { return {
classification: item.classification, classification: item.classification,
isPositive: item.isPositive, isPositive: item.isPositive,
...@@ -782,7 +783,7 @@ function editNode(e) { ...@@ -782,7 +783,7 @@ function editNode(e) {
const curTag = tagOptions.value.find((e) => e.value == labelName) const curTag = tagOptions.value.find((e) => e.value == labelName)
if (curTag) { if (curTag) {
obj = { obj = {
id: curTag.id, id: curTag.value,
} }
} }
params = { params = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment