perf: 使用封装的 confirm 替换 Modal.confirm
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user