From 07390e2fcb4adf27c928335bf27ae7939c5a80ad Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期二, 23 五月 2023 11:28:12 +0800
Subject: [PATCH] bakcup20230523

---
 force-app/main/default/lwc/lexCancelApply/lexCancelApply.js |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/force-app/main/default/lwc/lexCancelApply/lexCancelApply.js b/force-app/main/default/lwc/lexCancelApply/lexCancelApply.js
index 04cee1d..e973f99 100644
--- a/force-app/main/default/lwc/lexCancelApply/lexCancelApply.js
+++ b/force-app/main/default/lwc/lexCancelApply/lexCancelApply.js
@@ -37,8 +37,7 @@
 	        label: 'this is the aria-label value',
 	        
 	    }).then(cancel=>{
-	  //   	this.IsLoading=false;
-			// this.dispatchEvent(new CloseActionScreenEvent());
+	    	
 	    	if(cancel) {
 	    		cancelApply({
 					taId : this.recordId
@@ -55,6 +54,9 @@
 
 					
 				});
+	    	} else {
+	    		this.IsLoading=false;
+				this.dispatchEvent(new CloseActionScreenEvent());
 	    	}
 	    	
 	    });
@@ -65,8 +67,9 @@
 	async cancelSubmit(){
 		if(this.cancelResult == '1') {
 			await this.showToast("",'鍙栨秷鎴愬姛',"success"); 
-			window.location.href = window.location;
-					
+			setTimeout(function(){
+				window.location.href = window.location;
+			}, 1500 )
 		} else {
 			console.log("result:",this.cancelResult);
 			await this.showToast("",this.cancelResult,"warning"); 	

--
Gitblit v1.9.1