mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
fix(vue): replacing routes across nested outlets preserves previous route info (#25171)
resolves #25017
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
<ion-header>
|
||||
<ion-toolbar>
|
||||
<ion-buttons slot="start">
|
||||
<ion-back-button id="routeroutlet-back-button" text="Back to main outlet"></ion-back-button>
|
||||
<ion-button id="inbox" router-link="/nested/inbox" router-direction="root">Inbox</ion-button>
|
||||
<ion-button id="trash" router-link="/nested/trash" router-direction="root">Trash</ion-button>
|
||||
<ion-button id="outbox" router-link="/nested/outbox" router-direction="root">Outbox</ion-button>
|
||||
@ -19,6 +20,7 @@
|
||||
|
||||
<script lang="ts">
|
||||
import {
|
||||
IonBackButton,
|
||||
IonHeader,
|
||||
IonButtons,
|
||||
IonButton,
|
||||
@ -31,6 +33,7 @@ import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
components: {
|
||||
IonBackButton,
|
||||
IonHeader,
|
||||
IonButtons,
|
||||
IonButton,
|
||||
|
Reference in New Issue
Block a user