Skip to content

Modal 对话框使用confirm(),打包后弹窗无法关闭 #7261

@yde55188

Description

@yde55188
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.2.20

Environment

vue3

Reproduction link

https://3x.antdv.com/components/modal-cn

Steps to reproduce

使用confirm()方式弹窗,构建以后无法关闭对话框,我加上
onCancel() {
Modal.destroyAll();
},
onOk() {
Modal.destroyAll();
},
也无法关闭,但是在dev下正常可以关闭,build以后就无法关闭。

What is expected?

希望可以关闭

What is actually happening?

build打包以后Modal 对话框无法关闭

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions