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