From bbc7c47e3eadfe0ae3ac57419b1c9b8b2ed3e3d4 Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期四, 06 四月 2023 17:30:41 +0800
Subject: [PATCH] 修改按钮 4.6

---
 force-app/main/default/lwc/lexCancelSubmit/lexCancelSubmit.js |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/force-app/main/default/lwc/lexCancelSubmit/lexCancelSubmit.js b/force-app/main/default/lwc/lexCancelSubmit/lexCancelSubmit.js
index c3eb560..85014ed 100644
--- a/force-app/main/default/lwc/lexCancelSubmit/lexCancelSubmit.js
+++ b/force-app/main/default/lwc/lexCancelSubmit/lexCancelSubmit.js
@@ -12,6 +12,24 @@
     ownerId;
     monthlyReportId;
     IsLoading = true;
+
+
+    @wire(CurrentPageReference)
+    getStateParameters(currentPageReference) {
+            console.log(111);
+            console.log(currentPageReference);
+
+        if (currentPageReference) {
+          const urlValue = currentPageReference.state.recordId;
+          if (urlValue) {
+            let str = `${urlValue}`;
+            console.log("str");
+            console.log(str);
+            this.recordId = str;
+          }
+        }
+    }
+
     connectedCallback () {
         console.log(this.recordId);
         init({

--
Gitblit v1.9.1