Explorar el Código

Поправил бажок

Book Pauk hace 6 años
padre
commit
89ca0f452a
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      client/components/Reader/LoaderPage/LoaderPage.vue

+ 2 - 1
client/components/Reader/LoaderPage/LoaderPage.vue

@@ -73,7 +73,8 @@ class LoaderPage extends Vue {
 
     loadFile() {
         const file = this.$refs.file.files[0];
-        this.$emit('load-file', {file});
+        if (file)
+            this.$emit('load-file', {file});
     }
 
     openHelp() {