mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-15 17:42:15 +08:00
feat(vue): add webHashHistory and memoryHistory options for router (#22101)
* add additional history types * fix imports
This commit is contained in:
@ -1,7 +1,9 @@
|
||||
import { App } from 'vue';
|
||||
import {
|
||||
createRouter as createVueRouter,
|
||||
createWebHistory as createVueWebHistory
|
||||
createWebHistory as createVueWebHistory,
|
||||
createWebHashHistory as createVueWebHashHistory,
|
||||
createMemoryHistory as createVueMemoryHistory
|
||||
} from 'vue-router';
|
||||
import { createIonRouter } from './router';
|
||||
import { createViewStacks } from './viewStacks';
|
||||
@ -30,3 +32,5 @@ export const createRouter = (opts: IonicVueRouterOptions) => {
|
||||
}
|
||||
|
||||
export const createWebHistory = (base?: string) => createVueWebHistory(base);
|
||||
export const createWebHashHistory = (base?: string) => createVueWebHashHistory(base);
|
||||
export const createMemoryHistory = (base?: string) => createVueMemoryHistory(base);
|
||||
|
Reference in New Issue
Block a user