From c02c4b865c8c6bf35386842a434a56ba35899ec1 Mon Sep 17 00:00:00 2001 From: q4speed Date: Fri, 5 Jun 2020 17:18:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/business/components/api/test/ApiTestConfig.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/src/business/components/api/test/ApiTestConfig.vue b/frontend/src/business/components/api/test/ApiTestConfig.vue index 80cb3b5036..1929790b1c 100644 --- a/frontend/src/business/components/api/test/ApiTestConfig.vue +++ b/frontend/src/business/components/api/test/ApiTestConfig.vue @@ -88,10 +88,9 @@ methods: { init() { let projectId; - this.isReadOnly = false; - if (!checkoutTestManagerOrTestUser()) { - this.isReadOnly = true; - } + + this.isReadOnly = !checkoutTestManagerOrTestUser(); + if (this.id) { this.create = false; this.getTest(this.id);