123
chenjingwu
2024-04-11 5f43dac2f19ed47ea4cd211a4c6c7f94e8dc0c25
force-app/main/default/lwc/lexVOCCheck/lexVOCCheck.js
@@ -74,13 +74,22 @@
    }
    showToast(msg,type) {
        const event = new ShowToastEvent({
            title: ' ',
            message: msg,
            variant: type,
            mode: 'sticky'
        });
        this.dispatchEvent(event);
        if(type == 'success'){
            const event = new ShowToastEvent({
                message: msg,
                variant: type,
            });
            this.dispatchEvent(event);
            this.dispatchEvent(new CloseActionScreenEvent());
        }else{
            const event = new ShowToastEvent({
                message: msg,
                variant: type,
                mode: 'sticky'
            });
            this.dispatchEvent(event);
            this.dispatchEvent(new CloseActionScreenEvent());
        }
    }
    getUserId(userName){
        getUserIdByName({