From 1727a4f4d02e429475608e60f142a63bc24127bc Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期一, 23 十月 2023 10:07:34 +0800
Subject: [PATCH] 近期修改

---
 force-app/main/default/lwc/lexStartTrading/lexStartTrading.js |   25 ++++++++++++++++---------
 1 files changed, 16 insertions(+), 9 deletions(-)

diff --git a/force-app/main/default/lwc/lexStartTrading/lexStartTrading.js b/force-app/main/default/lwc/lexStartTrading/lexStartTrading.js
index 682de42..6e6caee 100644
--- a/force-app/main/default/lwc/lexStartTrading/lexStartTrading.js
+++ b/force-app/main/default/lwc/lexStartTrading/lexStartTrading.js
@@ -69,16 +69,23 @@
 				console.log('start result==========',result);
 				if(result!=null){
 					this.showToast('宸叉垚鍔熻浆鍖栬浠�','success');
-					window.open('/lightning/r/Opportunity/'+result+'/view','_parent');
-					// this[NavigationMixin.GenerateUrl]({
-					// 	type: "standard__recordPage",
-					// 	attributes: {
-					// 		recordId: result,
-					// 		objectApiName:"Opportunity",
-					// 		actionName:"edit"
-					// 	}
-					// })
+					console.log(result);
+					// window.location = '/lightning/r/Opportunity/'+result+'/view';
+					this[NavigationMixin.Navigate]({
+						type: "standard__recordPage",
+						attributes: {
+							recordId: result,
+							actionName:"edit"
+						},
+						state: {
+							nooverride: '1',
+							backgroundContext: '/lightning/r/Opportunity/'+result+'/view'
+						}
+					});
 				}
+			}).catch(error=>{
+				console.log('error');
+				console.log(error);
 			});
 			// .catch(err=>{
 			// 	console.log("start error:");

--
Gitblit v1.9.1