Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/release-v0.8' into release-v0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
fanyinbo committed Dec 13, 2023
2 parents 2499cf3 + cfd4ab4 commit 2faff66
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions frontend/pc-tool/src/api/model.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { get, post } from './base';
import { IModel } from 'pc-editor';

import { utils } from 'pc-editor';
export async function getModelList() {
let url = '/api/model/list';
let data = await get(url);
Expand Down Expand Up @@ -32,12 +32,11 @@ export async function clearModel(dataIds: number[], recordId: string) {

export async function getModelResult(dataIds: string[], recordId: string) {
let url = '/api/data/modelAnnotationResult';
let args = [];
dataIds.forEach((e) => {
args.push(`dataIds=${e}`);
const query = utils.queryStr({
serialNo: recordId,
dataIds: dataIds,
});
args.push(`serialNo=${recordId}`);
return await get(`${url}?${args.join('&')}`);
return await get(`${url}?${query}`);
}

export async function runModel(config: any) {
Expand Down

0 comments on commit 2faff66

Please sign in to comment.