Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自定义页面中使用全局 UI 提示组件要等三秒左右才能弹出 #267

Open
WendelYu opened this issue Aug 29, 2024 · 1 comment

Comments

@WendelYu
Copy link

版本情况

JDK版本: openjdk_8_201
erupt版本: 1.12.15(请确保最新尝试是否还有问题)

问题描述(包括截图)

自定义页面中使用全局 UI 提示组件要等三秒左右才能弹出,这是正常的吗,还是我用错了

        recaptureData(variable) {
            // console.log(variable)
            parent.modal.info({
                nzTitle: '确认要执行重新采集吗?',
                nzContent: '<b style="color: red;">请确认是否执行此操作</b>',
                nzOkText: '确定',
                nzOkType: 'primary',
                nzOkDanger: true,
                nzOnOk: () => request(variable.id),
                nzCancelText: '关闭',
                nzOnCancel: () => console.log('Cancel')
            })
            function request(id) {
                console.log('Request')
                axios({
                    url: "http://" + localhostPath + '/index/reset-variable-value',
                    method: 'post',
                    params: {
                        'id': id
                    } }).then(res=>{
                    console.log("data", res.data);
                });
            }

        },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@WendelYu and others