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

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

上级 daec40e8
...@@ -39,14 +39,18 @@ export default { ...@@ -39,14 +39,18 @@ 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) {
yield call(setDomain, domain.name, path);
const latest = yield call(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 {
yield put(routerRedux.push(fullPath('/main'))); yield put(routerRedux.push(fullPath('/main')));
} }
} else {
yield put(routerRedux.push(fullPath('/domain')));
}
} }
}, },
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论