mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-06-30 02:35:08 +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) {
|
||||
return createMemoryHistory
|
||||
}
|
||||
|
@ -29,8 +29,8 @@ export default function (api) {
|
||||
'render',
|
||||
// 修改路由
|
||||
'patchRoutes',
|
||||
// 修改histror
|
||||
'modifyCreateHistroy',
|
||||
// 修改history
|
||||
'modifyCreateHistory',
|
||||
// 生成router时触发
|
||||
'onRouterCreated'
|
||||
]
|
||||
|
@ -14,7 +14,7 @@ export const createRouter = (routes) => {
|
||||
return router;
|
||||
}
|
||||
const createHistory = plugin.applyPlugins({
|
||||
key: 'modifyCreateHistroy',
|
||||
key: 'modifyCreateHistory',
|
||||
type: ApplyPluginsType.modify,
|
||||
args: {
|
||||
base: ROUTER_BASE
|
||||
|
Loading…
x
Reference in New Issue
Block a user