Код: Выделить всё
router.js { path: '/event_detail/:role/:objectId/:eventId', name: 'EventDetail', component: event_detail, props: true, }
< /code>
Вот контроллер бэкэнд: < /p>
@RestController @RequestMapping("/event_detail") public class EventDetailController {
@Autowired
private EventDetailService eventService;
@GetMapping("/{role}/{objectId}/{eventId}")
public ResponseEntity getEventDetail(
@PathVariable String role,
@PathVariable ObjectId objectId,
@PathVariable String eventId) {
}
}
< /code>
Вот код для навигации через кнопку: < /p>
redirectToEventPage() {this.$router.push({ path: this.Url });} else {alert("B");},
Подробнее здесь: https://stackoverflow.com/questions/793 ... ween-pages