From 8475b9f98c8a4c95446f02be4bf2a64e359c359a Mon Sep 17 00:00:00 2001
From: liwentao <1376563863@qq.com>
Date: 星期五, 11 八月 2023 09:10:31 +0800
Subject: [PATCH] 与测试环境对比,部分代码已被人修改,删除其中的alert和部分硬编码,还原测试环境代码逻辑

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

diff --git a/force-app/main/default/lwc/lexYanshoudanRequest/lexYanshoudanRequest.js b/force-app/main/default/lwc/lexYanshoudanRequest/lexYanshoudanRequest.js
index 84fe55d..97a70c1 100644
--- a/force-app/main/default/lwc/lexYanshoudanRequest/lexYanshoudanRequest.js
+++ b/force-app/main/default/lwc/lexYanshoudanRequest/lexYanshoudanRequest.js
@@ -33,7 +33,6 @@
     }
 
     connectedCallback() {
-        console.log(this.recordId);
         init({
             recordId: this.recordId
         }).then(result => {
@@ -47,9 +46,7 @@
             }
         }).catch(error => {
             console.log(error);
-        }).finally(() => {
-
-        });
+        })
     }
 
     // 楠屾敹鍗曞洖鏀剁敵璇�
@@ -58,12 +55,13 @@
             recordId: this.Id
         }).then(result => {
             console.log(result);
-            if (result.length > 0) {
-                var indexs = result.indexOf(": ")
-                var resolves = result.substring(indexs + 1, result.length);
-                alert(resolves);
+            if (result != null) {
+                if (result.length > 0) {
+                    var split = result.split(", ");
+                    alert(split[1]);
+                }
             }
-            location.reload();
+            alert("宸茬粡鐢宠杩囦簡锛屼笉鍏佽閲嶆柊鐢宠");
         })
     }
 

--
Gitblit v1.9.1