新增收藏更新
This commit is contained in:
parent
13d5de13ea
commit
46df8d8515
@ -114,8 +114,8 @@ const formData = ref({
|
||||
})
|
||||
const formData2 = ref({
|
||||
id: undefined,
|
||||
userId: '',
|
||||
kowsId: '',
|
||||
userId: undefined,
|
||||
kowsId: undefined,
|
||||
})
|
||||
const formRules = reactive({
|
||||
typeId: [{ required: true, message: '类型id不能为空', trigger: 'blur' }],
|
||||
@ -187,7 +187,8 @@ const submitForm = async () => {
|
||||
formData2.value.userId = userInfo.value.id
|
||||
console.log("formData2",formData2.value)
|
||||
if (ys.value){
|
||||
await Star2Api.createStar2(formData2)
|
||||
await Star2Api.createStar2(formData2.value)
|
||||
// message.success(t('common.createSuccess'))
|
||||
}
|
||||
// 拼接子表的数据
|
||||
data.comments = commentFormRef.value.getData()
|
||||
|
Loading…
Reference in New Issue
Block a user