像素
This commit is contained in:
@@ -319,9 +319,9 @@ export default {
|
|||||||
if (count > 9) {
|
if (count > 9) {
|
||||||
return this.$u.toast(`不能超过9个`)
|
return this.$u.toast(`不能超过9个`)
|
||||||
}
|
}
|
||||||
let maxImage = 10 * 1024 // 10M
|
let maxImage = 10 * 1024 * 1024// 10M
|
||||||
let maxVideo = 10 * 1024 // 10M
|
let maxVideo = 10 * 1024 * 1024// 10M
|
||||||
let maxFile = 20 * 1024 // 20M
|
let maxFile = 20 * 1024 * 1024// 20M
|
||||||
if (res.tempFiles) {
|
if (res.tempFiles) {
|
||||||
if(type == "image") {
|
if(type == "image") {
|
||||||
if(res.tempFiles.every(e=> e.size > maxImage)) {
|
if(res.tempFiles.every(e=> e.size > maxImage)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user