Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return new Promise((resolve, reject) => {
const dialog = new Dialog({
size: 'mini',
title: '确认删除',
children: `确认删除文件:${file.name}`,
});
dialog.show();
dialog.on('ok', resolve);
dialog.on('cancel', reject);
});
},
return new Promise((resolve, reject) => {
const dialog = new Dialog({
size: 'mini',
title: '确认删除',
children: `确认删除文件:${file.name}`,
});
dialog.show();
dialog.on('ok', resolve);
dialog.on('cancel', reject);
});
},