|
@@ -185,7 +185,7 @@
|
|
v-for="tag in tagOptions"
|
|
v-for="tag in tagOptions"
|
|
:key="tag.id"
|
|
:key="tag.id"
|
|
:label="tag.name"
|
|
:label="tag.name"
|
|
- :value="tag.name"
|
|
|
|
|
|
+ :value="tag.id"
|
|
/>
|
|
/>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -324,7 +324,7 @@ export default {
|
|
ids,
|
|
ids,
|
|
tagIds: this.tagForm.tags, // 现在传递的是标签ID数组
|
|
tagIds: this.tagForm.tags, // 现在传递的是标签ID数组
|
|
}); */
|
|
}); */
|
|
- const idObject={literature_ids:ids,tag_names:this.tagForm.tags}
|
|
|
|
|
|
+ const idObject={literature_ids:ids,tag_ids:this.tagForm.tags}
|
|
const response = await axios.post(
|
|
const response = await axios.post(
|
|
`${process.env.VUE_APP_BASE_API}/literature-tags/relation_tags/`,
|
|
`${process.env.VUE_APP_BASE_API}/literature-tags/relation_tags/`,
|
|
idObject,
|
|
idObject,
|