replace element plus components

This commit is contained in:
pa
2026-01-15 22:38:09 +09:00
committed by Natsumi
parent bdc1d3a347
commit c430ce1b63
46 changed files with 2143 additions and 1752 deletions

View File

@@ -403,13 +403,15 @@ function openExternalLink(link) {
confirmText: 'Open',
cancelText: 'Copy'
})
// TODO: beforeClose alert dialog
.then(({ ok }) => {
if (!ok) {
.then(({ ok, reason }) => {
if (reason === 'cancel') {
copyToClipboard(link, 'Link copied to clipboard!');
return;
}
AppApi.OpenLink(link);
if (ok) {
AppApi.OpenLink(link);
return;
}
});
}