新增收藏更新

This commit is contained in:
XaoLi717 2024-07-30 15:58:26 +08:00
parent 13d5de13ea
commit 46df8d8515

View File

@ -114,8 +114,8 @@ const formData = ref({
}) })
const formData2 = ref({ const formData2 = ref({
id: undefined, id: undefined,
userId: '', userId: undefined,
kowsId: '', kowsId: undefined,
}) })
const formRules = reactive({ const formRules = reactive({
typeId: [{ required: true, message: '类型id不能为空', trigger: 'blur' }], typeId: [{ required: true, message: '类型id不能为空', trigger: 'blur' }],
@ -187,7 +187,8 @@ const submitForm = async () => {
formData2.value.userId = userInfo.value.id formData2.value.userId = userInfo.value.id
console.log("formData2",formData2.value) console.log("formData2",formData2.value)
if (ys.value){ if (ys.value){
await Star2Api.createStar2(formData2) await Star2Api.createStar2(formData2.value)
// message.success(t('common.createSuccess'))
} }
// //
data.comments = commentFormRef.value.getData() data.comments = commentFormRef.value.getData()