【功能优化】INFRA:测试文件上传时,使用 confirm 替代 message 作为提示,避免文件地址过长的问题

pull/487/MERGE
YunaiV 2024-07-28 12:11:27 +08:00
parent 8caf19a193
commit 3fec45b5b4
1 changed files with 3 additions and 1 deletions

View File

@ -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 {}
}