добавлена проверка на пустоту при добавлении файла

This commit is contained in:
Alex committed 2023-10-25 16:15:42 +03:00
1 parent 609a8d69ec
commit 1eef5fe622
1 file changed
+11 -1
+11 -1
View File
@@ -24,6 +24,7 @@
<!-- <v-spacer></v-spacer> -->
<v-file-input
:rules="rules"
v-model="dailyfiles"
variant="underlined"
density="compact"
@@ -69,12 +70,21 @@ export default {
}
function checkFile(value) {
return value.length > 0 || 'Добавьте файл'
}
const rules = [checkFile]
return {
visiting,
excelOp,
baseURL,
dailyfiles,
onPickFile
onPickFile,
rules,
}
}