| | |
| | | import { achunkCreate } from '@/api/kbList'; |
| | | |
| | | const props = defineProps(['item']); |
| | | |
| | | const emit = defineEmits(['canplaythrough']); |
| | | const visible = ref(false); |
| | | const keyVisible = ref(false); |
| | | const loading = ref(false); |
| | |
| | | }; |
| | | |
| | | const handleSubmit = async ({ values, errors }) => { |
| | | console.log(props.item.id); |
| | | if (!errors) { |
| | | const res = await achunkCreate({ |
| | | content_with_weight: values.content_with_weight, |
| | | important_kwd: values.important_kwd, |
| | | doc_id: props.item.id, |
| | | }); |
| | | if (res.code === 0) { |
| | | visible.value = false; |
| | | emit('canplaythrough'); |
| | | } |
| | | } |
| | | }; |
| | | |