File tree Expand file tree Collapse file tree 4 files changed +230
-157
lines changed
frontend/src/pages/DataAnnotation
runtime/datamate-python/app/module/annotation Expand file tree Collapse file tree 4 files changed +230
-157
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import CardView from "@/components/CardView";
1111import type { AnnotationTask } from "../annotation.model" ;
1212import useFetchData from "@/hooks/useFetchData" ;
1313import {
14- deleteAnnotationTaskByIdUsingDelete ,
14+ deleteAnnotationTaskByIdUsingDelete , loginAnnotationUsingGet ,
1515 queryAnnotationTasksUsingGet ,
1616 syncAnnotationTaskUsingPost ,
1717} from "../annotation.api" ;
@@ -76,6 +76,7 @@ export default function DataAnnotation() {
7676
7777 if ( labelingProjId ) {
7878 // only open external Label Studio when we have a configured base url
79+ await loginAnnotationUsingGet ( labelingProjId )
7980 if ( base ) {
8081 const target = `${ base } /projects/${ labelingProjId } /data` ;
8182 window . open ( target , "_blank" ) ;
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ export function deleteAnnotationTaskByIdUsingDelete(mappingId: string) {
1818 return del ( `/api/annotation/project/${ mappingId } ` ) ;
1919}
2020
21+ export function loginAnnotationUsingGet ( mappingId : string ) {
22+ return get ( "/api/annotation/project/${mappingId}/login" ) ;
23+ }
24+
2125// 标签配置管理
2226export function getTagConfigUsingGet ( ) {
2327 return get ( "/api/annotation/tags/config" ) ;
@@ -43,4 +47,4 @@ export function deleteAnnotationTemplateByIdUsingDelete(
4347 templateId : string | number
4448) {
4549 return del ( `/api/annotation/template/${ templateId } ` ) ;
46- }
50+ }
You can’t perform that action at this time.
0 commit comments