Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0bf11568
authored
Mar 26, 2026
by
yancanhua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 自测问题修改
1 parent
152f2275
Pipeline
#137
for
0bf11568
failed
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
apps/web/venus-usedcar-quality/src/components/CustomizeForm/buttonSelectAndImageUpload.vue
apps/web/venus-usedcar-quality/src/components/CustomizeForm/customizeUploadFile.vue
apps/web/venus-usedcar-quality/src/components/CustomizeForm/buttonSelectAndImageUpload.vue
View file @
0bf1156
...
...
@@ -48,6 +48,10 @@ async function onFileChange(ev: Event) {
const
file
=
input
.
files
?.[
0
];
input
.
value
=
""
;
if
(
!
file
)
return
;
const
fileSize
=
file
.
size
/
1024
/
1024
;
if
(
fileSize
&&
fileSize
>
5
)
{
return
showToast
(
`文件大小不能超过5MB`
);
}
uploading
.
value
=
true
;
try
{
const
res
=
await
uploadFile
(
file
);
...
...
apps/web/venus-usedcar-quality/src/components/CustomizeForm/customizeUploadFile.vue
View file @
0bf1156
...
...
@@ -49,6 +49,16 @@ async function onFileChange(ev: Event) {
const
file
=
input
.
files
?.[
0
];
input
.
value
=
""
;
if
(
!
file
)
return
;
const
fileSize
=
file
.
size
/
1024
/
1024
;
// 检查文件大小是否超过限制 10MB
if
(
props
.
item
.
interactionType
==
'image_upload'
&&
fileSize
&&
fileSize
>
5
)
{
return
showToast
(
`文件大小不能超过5MB`
);;
}
// 检查文件大小是否超过限制 10MB
if
(
props
.
item
.
interactionType
==
'video_upload'
&&
fileSize
&&
fileSize
>
100
)
{
return
showToast
(
`文件大小不能超过100MB`
);
}
uploading
.
value
=
true
;
try
{
const
res
=
await
uploadFile
(
file
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment