提交 408ae80f authored 作者: vipcxj's avatar vipcxj

无区域权限自动跳转到选区域界面

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