diff --git a/test-track/frontend/src/business/case/components/TestCaseEdit.vue b/test-track/frontend/src/business/case/components/TestCaseEdit.vue index 8d7c32e00a..27f246d29f 100644 --- a/test-track/frontend/src/business/case/components/TestCaseEdit.vue +++ b/test-track/frontend/src/business/case/components/TestCaseEdit.vue @@ -450,7 +450,7 @@ export default { .then(res => { this.loading = false; let data = res.data; - if (data && data.casePublic) { + if (data && data.typeValue === 'true') { this.isPublic = true; } }); diff --git a/test-track/frontend/src/business/case/components/TestCaseList.vue b/test-track/frontend/src/business/case/components/TestCaseList.vue index c8de2d2cd8..8f31a13389 100644 --- a/test-track/frontend/src/business/case/components/TestCaseList.vue +++ b/test-track/frontend/src/business/case/components/TestCaseList.vue @@ -978,7 +978,7 @@ export default { getProjectApplicationConfig('CASE_PUBLIC') .then(res => { let data = res.data; - if (data && data.casePublic) { + if (data && data.typeValue === 'true') { let param = {}; param.ids = this.$refs.table.selectIds; param.casePublic = true;