@@ -148,10 +148,10 @@ export default {
148
148
this.formObject[field] = event.formData[field];
149
149
}
150
150
151
- this.$router.push(this.items[event.pageIndex + 1].to );
151
+ this.$router.push(this.items[event.pageIndex + 1].route );
152
152
},
153
153
prevPage(event) {
154
- this.$router.push(this.items[event.pageIndex - 1].to );
154
+ this.$router.push(this.items[event.pageIndex - 1].route );
155
155
},
156
156
complete() {
157
157
this.$toast.add({severity:'success', summary:'Order submitted', detail: 'Dear, ' + this.formObject.firstname + ' ' + this.formObject.lastname + ' your order completed.'});
@@ -238,10 +238,10 @@ const nextPage = (event) => {
238
238
formObject.value[field] = event.formData[field];
239
239
}
240
240
241
- router.push(items.value[event.pageIndex + 1].to );
241
+ router.push(items.value[event.pageIndex + 1].route );
242
242
};
243
243
const prevPage = (event) => {
244
- router.push(items.value[event.pageIndex - 1].to );
244
+ router.push(items.value[event.pageIndex - 1].route );
245
245
};
246
246
const complete = () => {
247
247
toast.add({severity:'success', summary:'Order submitted', detail: 'Dear, ' + formObject.value.firstname + ' ' + formObject.value.lastname + ' your order completed.'});
@@ -574,10 +574,10 @@ export default {
574
574
this .formObject [field] = event .formData [field];
575
575
}
576
576
577
- this .$router .push (this .items [event .pageIndex + 1 ].to );
577
+ this .$router .push (this .items [event .pageIndex + 1 ].route );
578
578
},
579
579
prevPage (event ) {
580
- this .$router .push (this .items [event .pageIndex - 1 ].to );
580
+ this .$router .push (this .items [event .pageIndex - 1 ].route );
581
581
},
582
582
complete () {
583
583
this .$toast .add ({ severity: ' success' , summary: ' Order submitted' , detail: ' Dear, ' + this .formObject .firstname + ' ' + this .formObject .lastname + ' your order completed.' });
0 commit comments