mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-10-15 03:32:11 +08:00
refactor: modifyCreateHistroy更改为modifyCreateHistory
This commit is contained in:
parent
a29b021190
commit
f7185ea24e
@ -14,7 +14,7 @@ export function modifyClientRenderOpts(memo) {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function modifyCreateHistroy(memo) {
|
export function modifyCreateHistory(memo) {
|
||||||
if (history.url) {
|
if (history.url) {
|
||||||
return createMemoryHistory
|
return createMemoryHistory
|
||||||
}
|
}
|
||||||
|
@ -29,8 +29,8 @@ export default function (api) {
|
|||||||
'render',
|
'render',
|
||||||
// 修改路由
|
// 修改路由
|
||||||
'patchRoutes',
|
'patchRoutes',
|
||||||
// 修改histror
|
// 修改history
|
||||||
'modifyCreateHistroy',
|
'modifyCreateHistory',
|
||||||
// 生成router时触发
|
// 生成router时触发
|
||||||
'onRouterCreated'
|
'onRouterCreated'
|
||||||
]
|
]
|
||||||
|
@ -14,7 +14,7 @@ export const createRouter = (routes) => {
|
|||||||
return router;
|
return router;
|
||||||
}
|
}
|
||||||
const createHistory = plugin.applyPlugins({
|
const createHistory = plugin.applyPlugins({
|
||||||
key: 'modifyCreateHistroy',
|
key: 'modifyCreateHistory',
|
||||||
type: ApplyPluginsType.modify,
|
type: ApplyPluginsType.modify,
|
||||||
args: {
|
args: {
|
||||||
base: ROUTER_BASE
|
base: ROUTER_BASE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user