Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
frontend-h5
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
songrui
frontend-h5
Commits
69976bfe
Commit
69976bfe
authored
Dec 11, 2024
by
gengchunlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
居民端小程序 v1.2 图片上传大小限制调整
parent
db8a9da7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
DocImageUpload.vue
src/doctor/components/docImageUpload/DocImageUpload.vue
+3
-3
No files found.
src/doctor/components/docImageUpload/DocImageUpload.vue
View file @
69976bfe
...
...
@@ -47,7 +47,7 @@ export default {
},
props
:
{
// 上传描述
description
:
{
default
:
'温馨提示:请上传JPG、PNG格式图片,文件大小不超过
5
M'
},
description
:
{
default
:
'温馨提示:请上传JPG、PNG格式图片,文件大小不超过
10
M'
},
// 传入的img数据 { id, trueDownloadUrl }
imageData
:
{
default
:
()
=>
[]
},
// 上传按键的文字
...
...
@@ -125,8 +125,8 @@ export default {
showToast
(
'未选中文件,请尝试重新选择'
)
return
}
if
(
files
[
0
].
size
/
1024
/
1024
>
5
)
{
showToast
(
'图片大小不能超过
5
M'
)
if
(
files
[
0
].
size
/
1024
/
1024
>
10
)
{
showToast
(
'图片大小不能超过
10
M'
)
return
}
this
.
file
=
files
[
0
]
...
...
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