fix(测试跟踪): 公共用例无法编辑

This commit is contained in:
wxg0103 2021-12-24 14:40:53 +08:00 committed by BugKing
parent c9a3d013fe
commit 9859833ed6
1 changed files with 4 additions and 8 deletions

View File

@ -757,14 +757,10 @@ export default {
},
handleEdit(testCase, column) {
if (column.label !== this.$t('test_track.case.case_desc')) {
if (this.publicEnable) {
return;
} else {
this.$get('test/case/get/' + testCase.id, response => {
let testCase = response.data;
this.$emit('testCaseEdit', testCase);
});
}
this.$get('test/case/get/' + testCase.id, response => {
let testCase = response.data;
this.$emit('testCaseEdit', testCase);
});
}
},