@burh/nuxt-core 1.0.298 → 1.0.300
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -64,7 +64,7 @@ export default {
|
|
|
64
64
|
maxFiles: 1,
|
|
65
65
|
maxFilesize: 0.2, // ESTÁ DEFINIDO TAMANHO MÁXIMO DE 20 KB NA FOTO
|
|
66
66
|
dictFileTooBig:
|
|
67
|
-
'A imagem que você tentou inserir é maior que
|
|
67
|
+
'A imagem que você tentou inserir é maior que 500KB',
|
|
68
68
|
dictDefaultMessage: 'Clique ou arraste seu arquivo aqui',
|
|
69
69
|
acceptedFiles: 'image/*',
|
|
70
70
|
}
|
|
@@ -103,10 +103,10 @@ export default {
|
|
|
103
103
|
async saveImage() {
|
|
104
104
|
if (this.fileToUpload != null) {
|
|
105
105
|
let image = this.fileToUpload;
|
|
106
|
-
if (image[0].size <=
|
|
106
|
+
if (image[0].size <= 500000) {
|
|
107
107
|
this.$emit('save-img', image);
|
|
108
108
|
}
|
|
109
|
-
}
|
|
109
|
+
}
|
|
110
110
|
|
|
111
111
|
this.$emit('close-modal-video');
|
|
112
112
|
}
|