在lwc中关闭标准模态组件后的事件

时间:2020-04-28 15:09:30

标签: modal-dialog salesforce salesforce-lightning lwc

我通过这种方式在我的lwc中打开一个标准模态组件:

newContract(event) {
        let temp = {
            type: 'standard__objectPage',
            attributes: {
                objectApiName: 'Contract',
                actionName: 'new'
            },
            state: {
                nooverride: '1',
                useRecordTypeCheck: '1',
                defaultFieldValues: "AccountId=" + this.currentPageReference.state.c__id,
                navigationLocation: 'RELATED_LIST'
            }
        };
        this[NavigationMixin.Navigate](temp);

    }

一旦用户关闭模式组件,我想捕获事件以刷新组件的一部分。有帮助吗?

0 个答案:

没有答案
相关问题