1
chenjingwu
2024-05-24 35910c355f74e736e2068a0ffb7f39ae9615d8e1
force-app/main/default/lwc/lexCancel/lexCancel.js
@@ -4,7 +4,7 @@
 * @Author: chen jing wu
 * @Date: 2023-03-27 13:47:21
 * @LastEditors: chen jing wu
 * @LastEditTime: 2023-10-09 17:47:05
 * @LastEditTime: 2023-10-10 17:31:25
 */
import { api, wire,LightningElement } from 'lwc';
import { CurrentPageReference } from "lightning/navigation";
@@ -56,14 +56,12 @@
    showToast(msg,type) {
        if(type == 'success'){
            const event = new ShowToastEvent({
                title: ' ',
                message: msg,
                variant: type
            });  
            this.dispatchEvent(event);
        }else{
            const event = new ShowToastEvent({
                title: ' ',
                message: msg,
                variant: type,
                mode: 'sticky'