From c10beb27172238f32c42e64dda4f78f5454ea4a6 Mon Sep 17 00:00:00 2001
From: zz <1842059105@qq.com>
Date: 星期五, 07 四月 2023 10:53:22 +0800
Subject: [PATCH] 修改授权申请提交和取消提交

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

diff --git a/force-app/main/default/lwc/lexCancel/lexCancel.js b/force-app/main/default/lwc/lexCancel/lexCancel.js
index d98fdef..302de36 100644
--- a/force-app/main/default/lwc/lexCancel/lexCancel.js
+++ b/force-app/main/default/lwc/lexCancel/lexCancel.js
@@ -9,7 +9,23 @@
     @api recordId;
     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);
@@ -18,10 +34,10 @@
         }).then(result => {
             console.log(result);
             if (result != null) {
-                this.IsLoading = false;
                 this.status = result.status;
                 console.log(this.status);
                 this.cancel();
+                this.IsLoading = false;
 
             }
         }).catch(error => {

--
Gitblit v1.9.1