diff --git a/src/forge/Information/Component/publicBanner.jsx b/src/forge/Information/Component/publicBanner.jsx index 457fd213..94887520 100644 --- a/src/forge/Information/Component/publicBanner.jsx +++ b/src/forge/Information/Component/publicBanner.jsx @@ -93,7 +93,7 @@ function PublicBanner(props) { function apply() { if (checkIfLogin() === false) { - showLoginDialog() + showLoginDialog(`/zone/${deptId}`) return false; } else if (memberStatus === memberStatusEnum.applying) { message.info("您已提交申请,请耐心等待管理员审核!") @@ -108,7 +108,7 @@ function PublicBanner(props) { function toLessonsFunc(){ if (checkIfLogin() === false) { - showLoginDialog() + showLoginDialog(`/zone/${deptId}/lessons`) return false; } else{ window.location.href = `/zone/${deptId}/lessons`; diff --git a/src/forge/Information/api.js b/src/forge/Information/api.js index 5879fa47..9221f847 100644 --- a/src/forge/Information/api.js +++ b/src/forge/Information/api.js @@ -29,10 +29,11 @@ export function getCheckZoneRole(id) { }); } -export function getCurrentRole(id) { +export function getCurrentRole(id, deptId) { return fetch({ url: `/zone/zoneFront/${id}/checkCurrentRole`, method: 'get', + headers: {'Dept-Id': deptId} }); } diff --git a/src/forge/Server/List.jsx b/src/forge/Server/List.jsx index d47983a8..9416d3cc 100644 --- a/src/forge/Server/List.jsx +++ b/src/forge/Server/List.jsx @@ -46,7 +46,7 @@ function Main(props){
setVisible(false)} onOk={onOk}/>
}> @@ -300,7 +299,7 @@ function EditStore(props){