【功能优化】INFRA:测试文件上传时,使用 confirm 替代 message 作为提示,避免文件地址过长的问题
parent
8caf19a193
commit
3fec45b5b4
|
@ -131,6 +131,7 @@ import * as FileConfigApi from '@/api/infra/fileConfig'
|
||||||
import FileConfigForm from './FileConfigForm.vue'
|
import FileConfigForm from './FileConfigForm.vue'
|
||||||
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
|
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
|
||||||
import { dateFormatter } from '@/utils/formatTime'
|
import { dateFormatter } from '@/utils/formatTime'
|
||||||
|
import {ElMessageBox} from 'element-plus';
|
||||||
|
|
||||||
defineOptions({ name: 'InfraFileConfig' })
|
defineOptions({ name: 'InfraFileConfig' })
|
||||||
|
|
||||||
|
@ -206,7 +207,8 @@ const handleMaster = async (id) => {
|
||||||
const handleTest = async (id) => {
|
const handleTest = async (id) => {
|
||||||
try {
|
try {
|
||||||
const response = await FileConfigApi.testFileConfig(id)
|
const response = await FileConfigApi.testFileConfig(id)
|
||||||
message.alert('测试通过,上传文件成功!访问地址:' + response)
|
await message.confirm('是否要访问该文件?', '测试上传成功')
|
||||||
|
window.open(response, '_blank')
|
||||||
} catch {}
|
} catch {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue