fix(测试跟踪): 功能用例列表删除版本失败

--bug=1018791 --user=陈建星 [测试跟踪]功能用例-列表中删除当前版本失败 https://www.tapd.cn/55049933/s/1276628
This commit is contained in:
chenjianxing 2022-10-25 16:17:50 +08:00 committed by jianxing
parent 21d1c1e57b
commit 221a0c0049
1 changed files with 2 additions and 2 deletions

View File

@ -240,7 +240,7 @@ import BatchMove from "@/business/case/components/BatchMove";
import {SYSTEM_FIELD_NAME_MAP} from "metersphere-frontend/src/utils/table-constants";
import TestCasePreview from "@/business/case/components/TestCasePreview";
import {
deletePublicTestCaseVersion,
deleteTestCaseVersion,
editTestCaseOrder,
getTestCase,
getTestCaseStep,
@ -1025,7 +1025,7 @@ export default {
_handleDeleteVersion(testCase, deleteCurrentVersion) {
//
if (deleteCurrentVersion) {
deletePublicTestCaseVersion(testCase.versionId, testCase.refId)
deleteTestCaseVersion(testCase.versionId, testCase.refId)
.then(() => {
this.$success(this.$t('commons.delete_success'));
this.$refs.apiDeleteConfirm.close();