Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
yn-science-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐俊
yn-science-front
Commits
37b151fe
Commit
37b151fe
authored
Feb 18, 2025
by
wangxl
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.yiboshi.com/XuJun/yn-science-front
parents
a03bcae2
440f4590
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
file.vue
src/views/manager/project/components/file.vue
+3
-6
No files found.
src/views/manager/project/components/file.vue
View file @
37b151fe
...
...
@@ -47,17 +47,14 @@ export default {
}
}
},
uploadFile
(
obj
,
index
)
{
this
.
$api
.
base
.
asyncApplyBookUpload
(
this
.
uploadHandle
(
obj
.
file
,
obj
.
name
)).
then
(({
data
=
{}
})
=>
{
if
(
data
)
{
obj
.
fileName
=
files
[
0
].
name
obj
.
downloadUrl
=
data
.
downloadUrl
obj
.
downloadId
=
data
.
id
this
.
$message
.
success
(
'上传成功!'
)
}
else
this
.
$message
.
error
(
'上传失败'
)
this
.
$message
.
error
(
'上传失败
1
'
)
}).
catch
(()
=>
{
this
.
$message
.
error
(
'上传失败'
)
this
.
$message
.
error
(
'上传失败
2
'
)
})
},
uploadHandle
(
file
,
fileName
)
{
...
...
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