Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3fec45b5
authored
Jul 28, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【功能优化】INFRA:测试文件上传时,使用 confirm 替代 message 作为提示,避免文件地址过长的问题
parent
8caf19a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
src/views/infra/fileConfig/index.vue
+3
-1
No files found.
src/views/infra/fileConfig/index.vue
View file @
3fec45b5
...
...
@@ -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
{}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment