From 617ad9b16e9e1b4515567244a6ea99e77c2822e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Fri, 3 Nov 2023 16:26:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B3=E8=AF=B7ACME=E8=AF=81=E4=B9=A6?= =?UTF-8?q?=E6=97=B6=E9=98=B2=E6=AD=A2=E9=87=8D=E5=A4=8D=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/views/@default/servers/certs/acme/create.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/web/views/@default/servers/certs/acme/create.js b/web/views/@default/servers/certs/acme/create.js index 4ae7d9d8..8d72751e 100644 --- a/web/views/@default/servers/certs/acme/create.js +++ b/web/views/@default/servers/certs/acme/create.js @@ -105,7 +105,7 @@ Tea.context(function () { this.doDNS = function () { this.isRequesting = true let that = this - + let taskCreated = false this.$post("$") .params({ platformUserId: this.platformUserId, @@ -120,6 +120,7 @@ Tea.context(function () { }) .success(function (resp) { this.taskId = resp.data.taskId + taskCreated = true this.isRequesting = true this.$post(".run") @@ -136,7 +137,9 @@ Tea.context(function () { }) }) .done(function () { - this.isRequesting = false + if (!taskCreated) { + this.isRequesting = false + } }) }