diff --git a/src/views/infra/fileConfig/index.vue b/src/views/infra/fileConfig/index.vue index a9c001a9..ebbb8dde 100644 --- a/src/views/infra/fileConfig/index.vue +++ b/src/views/infra/fileConfig/index.vue @@ -131,6 +131,7 @@ import * as FileConfigApi from '@/api/infra/fileConfig' import FileConfigForm from './FileConfigForm.vue' import { DICT_TYPE, getIntDictOptions } from '@/utils/dict' import { dateFormatter } from '@/utils/formatTime' +import {ElMessageBox} from 'element-plus'; defineOptions({ name: 'InfraFileConfig' }) @@ -206,7 +207,8 @@ const handleMaster = async (id) => { const handleTest = async (id) => { try { const response = await FileConfigApi.testFileConfig(id) - message.alert('测试通过,上传文件成功!访问地址:' + response) + await message.confirm('是否要访问该文件?', '测试上传成功') + window.open(response, '_blank') } catch {} }