fix(测试计划): 修复测试阶段维护的数据

--bug=1011785 --user=刘瑞斌 [模板管理]github#12083测试阶段维护的数据,在V1.19.0版本之后就没法使用,有问题 https://www.tapd.cn/55049933/s/1128355

Closes #12083
This commit is contained in:
CaptainB 2022-03-31 17:53:40 +08:00 committed by 刘瑞斌
parent 420025bac1
commit fdd9c08477
1 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ import {post, get} from "@/common/js/ajax";
import {success} from "@/common/js/message";
import i18n from "@/i18n/i18n";
import {baseGet, basePost} from "@/network/base-network";
import {getCurrentWorkspaceId} from "@/common/js/utils";
import {getCurrentProjectID, getCurrentWorkspaceId} from "@/common/js/utils";
export function getTestPlanReport(planId, callback) {
if (planId) {
@ -172,8 +172,8 @@ export function editTestPlanLoadCaseOrder(request, callback) {
}
export function getPlanStageOption(callback) {
let wId = getCurrentWorkspaceId();
return wId ? baseGet('/test/plan/get/stage/option/' + wId, callback) : {};
let projectID = getCurrentProjectID();
return projectID ? baseGet('/test/plan/get/stage/option/' + projectID, callback) : {};
}