(title, onOk)
| 55 | }); |
| 56 | } |
| 57 | function confirmModal(title, onOk) { |
| 58 | // 确定框 |
| 59 | confirm({ |
| 60 | title, |
| 61 | getContainer: document.getElementById("workspace"), |
| 62 | icon: <ExclamationCircleOutlined />, |
| 63 | okText: '确定', |
| 64 | okType: 'danger', |
| 65 | okButtonProps: { |
| 66 | ghost: true |
| 67 | }, |
| 68 | maskClosable: true, |
| 69 | mask: true, |
| 70 | cancelText: '取消', |
| 71 | cancelButtonProps: { |
| 72 | ghost: true |
| 73 | }, |
| 74 | onOk() { |
| 75 | setTimeout(async () => { |
| 76 | onOk() |
| 77 | }, 100); |
| 78 | }, |
| 79 | onCancel() { }, |
| 80 | }); |
| 81 | } |
| 82 | |
| 83 | function share() { |
| 84 | setShareModal(true) |