use const

This commit is contained in:
afc163 2018-08-25 22:08:19 +08:00 committed by 偏右
parent 325bff5324
commit 0f472505db

View File

@ -77,7 +77,7 @@ const ConfirmDialog = (props: ConfirmDialogProps) => {
};
export default function confirm(config: ModalFuncProps) {
let div = document.createElement('div');
const div = document.createElement('div');
document.body.appendChild(div);
let currentConfig = { ...config, close, visible: true } as any;