mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	申请ACME证书时防止重复提交
This commit is contained in:
		@@ -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
 | 
			
		||||
				}
 | 
			
		||||
			})
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user