From d0b899c48eb14fdd6d8d5cb72a70aec785ddd4f9 Mon Sep 17 00:00:00 2001
From: twysparks <twysparks@163.com>
Date: 星期一, 10 四月 2023 14:59:07 +0800
Subject: [PATCH] TT

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

diff --git a/force-app/main/default/lwc/lexVOCAnswer/lexVOCAnswer.js b/force-app/main/default/lwc/lexVOCAnswer/lexVOCAnswer.js
index 7915a17..8e9882e 100644
--- a/force-app/main/default/lwc/lexVOCAnswer/lexVOCAnswer.js
+++ b/force-app/main/default/lwc/lexVOCAnswer/lexVOCAnswer.js
@@ -11,6 +11,22 @@
   status;
   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