add KnowledgeWorkFlow system

This commit is contained in:
Robin COuret
2026-03-08 01:33:21 +01:00
parent 73fff0955b
commit d1e5a6b0c7
25 changed files with 351 additions and 174 deletions

View File

@@ -3,10 +3,12 @@
import { BProgress } from "buefy";
import type { Knowledge } from "@/types/types";
import api from "@/services/apiAxios";
import api from "@/services/api";
import { useItemStore } from '@/stores/item'
import { useStepStore } from '@/stores/step'
import { ProcessStep } from '@/services/knowledgeWorklow'
const stepStore = useStepStore()
const itemStore = useItemStore()
@@ -18,7 +20,8 @@
async function generateQuestions (knowledge: Knowledge) {
await api.post(`api/v1/knowledges/${knowledge.id}/questions`)
stepStore.nextStep()
if(stepStore.indexStep == ProcessStep.WaitGeneration)
stepStore.nextStep()
}
</script>