mirror of https://github.com/doccano/doccano.git
pythondatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learningannotation-tool
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
485 B
20 lines
485 B
import { reactive, useContext } from '@nuxtjs/composition-api'
|
|
import { ProjectDTO } from '@/services/application/project/projectData'
|
|
|
|
export const useProjectItem = () => {
|
|
const state = reactive({
|
|
project: {} as ProjectDTO
|
|
})
|
|
|
|
const { app } = useContext()
|
|
const projectService = app.$services.project
|
|
|
|
const getProjectById = async (projectId: string) => {
|
|
state.project = await projectService.findById(projectId)
|
|
}
|
|
|
|
return {
|
|
state,
|
|
getProjectById
|
|
}
|
|
}
|