From 3fec45b5b4c56d996639b535203a92442acc2c4a Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 28 Jul 2024 12:11:27 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E3=80=91INFRA=EF=BC=9A=E6=B5=8B=E8=AF=95=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=97=B6=EF=BC=8C=E4=BD=BF=E7=94=A8=20confir?= =?UTF-8?q?m=20=E6=9B=BF=E4=BB=A3=20message=20=E4=BD=9C=E4=B8=BA=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=EF=BC=8C=E9=81=BF=E5=85=8D=E6=96=87=E4=BB=B6=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E8=BF=87=E9=95=BF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/infra/fileConfig/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 {} }