fix(测试跟踪): 公共用例库列表看不到最新添加的用例

--bug=1012439 --user=李玉号
【测试跟踪】公共用例库列表看不到最新添加的用例
https://www.tapd.cn/55049933/s/1140877
This commit is contained in:
shiziyuan9527 2022-04-20 15:36:11 +08:00 committed by 刘瑞斌
parent 5dac719b2b
commit 4c6bad1263
1 changed files with 11 additions and 1 deletions

View File

@ -404,6 +404,13 @@ export default {
this.tabs.push({label: label, name: name, testCaseInfo: tab.testCaseInfo});
}
if (tab.name === 'public') {
this.publicEnable = false;
this.$nextTick(() => {
this.publicEnable = true;
})
}
setCurTabId(this, tab, 'testCaseEdit');
},
addTabShow(tab) {
@ -646,7 +653,10 @@ export default {
},
enablePublic(data) {
this.initApiTableOpretion = "publicEnable";
this.publicEnable = data;
this.publicEnable = !data;
this.$nextTick(() => {
this.publicEnable = data;
})
},
toPublic(data) {
if (data === 'public') {