From 4c6bad12639da31923ba856fadf8043084d963a5 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Wed, 20 Apr 2022 15:36:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E5=85=AC=E5=85=B1=E7=94=A8=E4=BE=8B=E5=BA=93=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E7=9C=8B=E4=B8=8D=E5=88=B0=E6=9C=80=E6=96=B0=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=9A=84=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1012439 --user=李玉号 【测试跟踪】公共用例库列表看不到最新添加的用例 https://www.tapd.cn/55049933/s/1140877 --- .../src/business/components/track/case/TestCase.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/frontend/src/business/components/track/case/TestCase.vue b/frontend/src/business/components/track/case/TestCase.vue index cfa26a5164..e4b3149547 100644 --- a/frontend/src/business/components/track/case/TestCase.vue +++ b/frontend/src/business/components/track/case/TestCase.vue @@ -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') {