mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-17 22:30:25 +08:00
申请ACME证书时防止重复提交
This commit is contained in:
@@ -105,7 +105,7 @@ Tea.context(function () {
|
|||||||
this.doDNS = function () {
|
this.doDNS = function () {
|
||||||
this.isRequesting = true
|
this.isRequesting = true
|
||||||
let that = this
|
let that = this
|
||||||
|
let taskCreated = false
|
||||||
this.$post("$")
|
this.$post("$")
|
||||||
.params({
|
.params({
|
||||||
platformUserId: this.platformUserId,
|
platformUserId: this.platformUserId,
|
||||||
@@ -120,6 +120,7 @@ Tea.context(function () {
|
|||||||
})
|
})
|
||||||
.success(function (resp) {
|
.success(function (resp) {
|
||||||
this.taskId = resp.data.taskId
|
this.taskId = resp.data.taskId
|
||||||
|
taskCreated = true
|
||||||
|
|
||||||
this.isRequesting = true
|
this.isRequesting = true
|
||||||
this.$post(".run")
|
this.$post(".run")
|
||||||
@@ -136,7 +137,9 @@ Tea.context(function () {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
.done(function () {
|
.done(function () {
|
||||||
this.isRequesting = false
|
if (!taskCreated) {
|
||||||
|
this.isRequesting = false
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user