mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
fix(vue): routing history is correctly replaced when overwriting browser history (#24670)
resolves #23873
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user