perf: 使用封装的 confirm 替换 Modal.confirm

This commit is contained in:
xingyu4j
2025-05-06 21:38:46 +08:00
parent b724ca2917
commit d92972ba3e
6 changed files with 56 additions and 78 deletions

View File

@@ -7,6 +7,7 @@ import type { InfraFileApi } from '#/api/infra/file';
import { Page, useVbenModal } from '@vben/common-ui';
import { Upload } from '@vben/icons';
import { openWindow } from '@vben/utils';
import { useClipboard } from '@vueuse/core';
import { Button, Image, message } from 'ant-design-vue';
@@ -52,7 +53,7 @@ async function onCopyUrl(row: InfraFileApi.File) {
/** 打开 URL */
function openUrl(url?: string) {
if (url) {
window.open(url, '_blank');
openWindow(url);
}
}