liudong
2024-08-09 e67d5ed9974308207b7f6340bb3952240978546c
src/views/dmx/knowledgeLib/addDetails.vue
@@ -72,7 +72,7 @@
  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);
@@ -93,13 +93,16 @@
  };
  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');
      }
    }
  };