Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
source-trace-manage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqikuai
source-trace-manage
Commits
7e04cacf
Commit
7e04cacf
authored
Aug 11, 2022
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
bcbfe09f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
index.vue
src/views/AddCopyRight/components/UploadAttachment/index.vue
+6
-1
No files found.
src/views/AddCopyRight/components/UploadAttachment/index.vue
View file @
7e04cacf
...
...
@@ -57,7 +57,7 @@
</
template
>
<
script
setup
lang=
"ts"
>
import
{
UploadFile
,
UploadProps
,
useFormItem
}
from
"element-plus"
;
import
{
ElMessage
,
UploadFile
,
UploadProps
,
useFormItem
}
from
"element-plus"
;
import
type
{
UploadInstance
}
from
"element-plus"
;
import
{
ref
,
watch
}
from
"vue"
;
import
Icon
from
"@/components/Icon/index.vue"
;
...
...
@@ -98,6 +98,11 @@ const handleChange = async (e: Event) => {
if
(
!
file
)
return
;
file_
=
file
!
;
loading
.
value
=
true
;
if
(
file
.
size
>=
60
*
1024
*
1024
)
{
ElMessage
.
error
(
"文件大小超过60M"
);
loading
.
value
=
false
;
return
;
}
const
res
=
await
copyrightUploadFile
(
file
!
);
fileName
=
file
?.
name
!
;
name
.
value
=
file
?.
name
!
;
...
...
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