spaces work now!

This commit is contained in:
2020-08-31 14:33:31 +02:00
parent d915d1cd9b
commit e2ed2e2041
13 changed files with 176 additions and 200 deletions
+6 -5
View File
@@ -27,7 +27,7 @@
default: () => [ 'uiProperty' ]
},
route: {
type: String,
type: [String, Object],
default: null
}
},
@@ -173,10 +173,11 @@
if (response.model && this.route && this.$route.name !== this.route)
{
this.$router.replace({
name: this.route,
params: { id: response.model.id }
});
let routeObj = typeof this.route === 'object' ? this.route : { name: this.route };
routeObj.params = routeObj.params || {};
routeObj.params.id = response.model.id;
this.$router.replace(routeObj);
}
}
else