fix(vue): routing history is correctly replaced when overwriting browser history (#24670)

resolves #23873
This commit is contained in:
Liam DeBeasi
2022-02-02 13:35:52 -05:00
committed by GitHub
parent bf9b4dfb4e
commit 0b18260da6
6 changed files with 341 additions and 145 deletions

View File

@ -5,7 +5,7 @@
</template>
<script lang="ts">
import { IonApp, IonRouterOutlet } from '@ionic/vue';
import { IonApp, IonRouterOutlet, useIonRouter } from '@ionic/vue';
import { defineComponent } from 'vue';
export default defineComponent({
@ -13,6 +13,9 @@ export default defineComponent({
components: {
IonApp,
IonRouterOutlet
},
setup() {
(window as any).debugIonRouter = useIonRouter();
}
});
</script>