Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
f078bff6
Commit
f078bff6
authored
Oct 02, 2022
by
季圣华
Browse files
把商品图片大小的限制改为文件大小限制的十分之一
parent
f1ca73bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/components/jeecg/JImageUpload.vue
View file @
f078bff6
...
@@ -138,8 +138,8 @@
...
@@ -138,8 +138,8 @@
return
false
;
return
false
;
}
}
//验证文件大小
//验证文件大小
if
(
fileSize
>
this
.
sizeLimit
)
{
if
(
fileSize
>
this
.
sizeLimit
/
10
)
{
let
parseSizeLimit
=
(
this
.
sizeLimit
/
1024
/
1024
).
toFixed
(
2
)
let
parseSizeLimit
=
(
this
.
sizeLimit
/
1024
/
1024
/
10
).
toFixed
(
2
)
this
.
$message
.
warning
(
'
抱歉,图片大小不能超过
'
+
parseSizeLimit
+
'
M
'
);
this
.
$message
.
warning
(
'
抱歉,图片大小不能超过
'
+
parseSizeLimit
+
'
M
'
);
this
.
uploadGoOn
=
false
this
.
uploadGoOn
=
false
return
false
;
return
false
;
...
...
Write
Preview
Supports
Markdown
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