提交 a7f273a9 authored 作者: vipcxj's avatar vipcxj

不存在模块历史记录的时候不自动调整到快速导航页面

上级 4c513959
...@@ -31,7 +31,7 @@ export default { ...@@ -31,7 +31,7 @@ export default {
const { path, name } = yield call(currentDomain); const { path, name } = yield call(currentDomain);
yield call(setDomain, name, path); yield call(setDomain, name, path);
yield put({ type: 'queryInit', payload: path }); yield put({ type: 'queryInit', payload: path });
const latest = histories.getLatest('module'); const latest = yield call(histories.getLatest, 'module');
if (latest && config.fastNavigationPage) { if (latest && config.fastNavigationPage) {
yield put(routerRedux.push(fullPath('/fastNav'))); yield put(routerRedux.push(fullPath('/fastNav')));
} else { } else {
......
...@@ -41,7 +41,7 @@ export default { ...@@ -41,7 +41,7 @@ export default {
yield call(switchDomain, path); yield call(switchDomain, path);
const { name } = yield call(currentDomain); const { name } = yield call(currentDomain);
yield call(setDomain, name, path); yield call(setDomain, name, path);
const latest = histories.getLatest('module'); const latest = yield call(histories.getLatest, 'module');
if (latest && config.fastNavigationPage) { if (latest && config.fastNavigationPage) {
yield put(routerRedux.push(fullPath('/fastNav'))); yield put(routerRedux.push(fullPath('/fastNav')));
} else { } else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论