adding options in root component to see result or redirect (not working)

This commit is contained in:
2021-08-06 17:36:19 +02:00
parent b62597426c
commit da09e10fb1
2 changed files with 28 additions and 7 deletions

View File

@@ -511,11 +511,14 @@ export default {
.then(person => new Promise((resolve, reject) => {
console.log('commit addAddressToPerson !!!', person);
this.result = person;
this.$props.result = person;
this.flag.loading = false;
this.flag.success = true;
window.location.assign(payload.backUrl);
if (this.options.redirectToBackUrl) {
window.location.assign(payload.backUrl);
}
resolve();
}))
.catch((error) => {