twysparks
2023-06-26 a8628cfe2640797ba9265e9be46c42430d9e7eba
force-app/main/default/lwc/lexYanshoudanRequest/lexYanshoudanRequest.js
@@ -42,7 +42,6 @@
                this.Id = result.Id;
                this.YanshoudanRequest();
                this.dispatchEvent(new CloseActionScreenEvent());
            }
        }).catch(error => {
            console.log(error);
@@ -58,10 +57,12 @@
            if (result != null) {
                if (result.length > 0) {
                    var split = result.split(", ");
                    alert(split[1]);
                    this.ShowToastEvent(split[1], "error");
                    this.dispatchEvent(new CloseActionScreenEvent());
                }
            }
            alert("已经申请过了,不允许重新申请");
            this.ShowToastEvent("已经申请过了,不允许重新申请", "error");
            this.dispatchEvent(new CloseActionScreenEvent());
        })
    }