Fix Upload Form Vue Errors

vite-ws-ssl-compatible
Marcos Peña 2022-03-16 12:17:48 +00:00 zatwierdzone przez Georg Krause
rodzic 7216f3bacc
commit 8e2d686386
4 zmienionych plików z 11 dodań i 5 usunięć

Wyświetl plik

@ -0,0 +1 @@
Fixed upload form VUE erros (#1738) (1738)

Wyświetl plik

@ -332,7 +332,12 @@ export default {
},
data () {
const importReference = this.defaultImportReference || moment().format()
this.$router.replace({ query: { import: importReference } })
// Since $router.replace is pushing the same route, it raises NavigationDuplicated
this.$router.replace({ query: { import: importReference } }).catch((error) => {
if (error.name !== 'NavigationDuplicated') {
throw error
}
})
return {
files: [],
needsRefresh: false,
@ -349,7 +354,7 @@ export default {
objects: {}
},
processTimestamp: new Date(),
fsStatus: null,
fsStatus: {},
fsPath: [],
isLoadingFs: false,
fsInterval: null,

Wyświetl plik

@ -54,7 +54,7 @@ export default {
props: {
data: { type: Object, required: true },
loading: { type: Boolean, required: true },
value: { type: String, required: true }
value: { type: Array, required: true }
},
methods: {
handleClick (element) {

Wyświetl plik

@ -31,8 +31,8 @@ export default {
}
},
props: {
object: { type: String, required: true },
defaultImportReference: { type: String, required: true }
object: { type: Object, required: true },
defaultImportReference: { type: String, default: '' }
}
}
</script>