diff --git a/test-track/frontend/src/business/case/TestCase.vue b/test-track/frontend/src/business/case/TestCase.vue index 0c24f226fe..3641833051 100644 --- a/test-track/frontend/src/business/case/TestCase.vue +++ b/test-track/frontend/src/business/case/TestCase.vue @@ -770,8 +770,10 @@ export default { getProjectApplicationConfig('CASE_CUSTOM_NUM') .then(result => { let data = result.data; - if (data) { - store.currentProjectIsCustomNum = data.caseCustomNum; + if (data && data.typeValue === 'true') { + store.currentProjectIsCustomNum = true; + } else { + store.currentProjectIsCustomNum = false; } }); }, diff --git a/test-track/frontend/src/business/case/components/TestCaseEdit.vue b/test-track/frontend/src/business/case/components/TestCaseEdit.vue index 27f246d29f..41f8de05c2 100644 --- a/test-track/frontend/src/business/case/components/TestCaseEdit.vue +++ b/test-track/frontend/src/business/case/components/TestCaseEdit.vue @@ -6,7 +6,6 @@ { let data = result.data; - if (data) { - this.customNum = data.scenarioCustomNum; + if (data && data.typeValue === 'true') { + this.customNum = true; + } else { + this.customNum = false; } }); } diff --git a/test-track/frontend/src/business/plan/view/comonents/functional/FunctionalRelevance.vue b/test-track/frontend/src/business/plan/view/comonents/functional/FunctionalRelevance.vue index 278c16905f..2d7cb754a3 100644 --- a/test-track/frontend/src/business/plan/view/comonents/functional/FunctionalRelevance.vue +++ b/test-track/frontend/src/business/plan/view/comonents/functional/FunctionalRelevance.vue @@ -235,8 +235,10 @@ export default { getProjectApplicationConfig('CASE_CUSTOM_NUM') .then(result => { let data = result.data; - if (data) { - this.customNum = data.caseCustomNum; + if (data && data.typeValue === 'true') { + this.customNum = true; + } else { + this.customNum = false; } }); }, diff --git a/test-track/frontend/src/business/plan/view/comonents/ui/RelevanceUiScenarioList.vue b/test-track/frontend/src/business/plan/view/comonents/ui/RelevanceUiScenarioList.vue index c6a49d190e..c71f53286f 100644 --- a/test-track/frontend/src/business/plan/view/comonents/ui/RelevanceUiScenarioList.vue +++ b/test-track/frontend/src/business/plan/view/comonents/ui/RelevanceUiScenarioList.vue @@ -222,8 +222,10 @@ export default { getProjectApplicationConfig('SCENARIO_CUSTOM_NUM') .then(result => { let data = result.data; - if (data) { - this.customNum = data.scenarioCustomNum; + if (data && data.typeValue === 'true') { + this.customNum = true; + } else { + this.customNum = false; } }); } diff --git a/test-track/frontend/src/business/review/view/components/TestReviewTestCaseList.vue b/test-track/frontend/src/business/review/view/components/TestReviewTestCaseList.vue index db456785a1..3594b5f198 100644 --- a/test-track/frontend/src/business/review/view/components/TestReviewTestCaseList.vue +++ b/test-track/frontend/src/business/review/view/components/TestReviewTestCaseList.vue @@ -462,9 +462,12 @@ export default { getProject() { getProjectConfig(this.projectId, "/CASE_CUSTOM_NUM") .then(result => { + let store = useStore(); let data = result.data; - if (data) { - useStore().currentProjectIsCustomNum = data.caseCustomNum; + if (data && data.typeValue === 'true') { + store.currentProjectIsCustomNum = true; + } else { + store.currentProjectIsCustomNum = false; } }); },