mid 수정
This commit is contained in:
@@ -77,6 +77,7 @@ export interface HeaderNavigationProps {
|
|||||||
setMenuOn: (menuOn: boolean) => void;
|
setMenuOn: (menuOn: boolean) => void;
|
||||||
favoriteEdit?: boolean;
|
favoriteEdit?: boolean;
|
||||||
loginSuccess: boolean;
|
loginSuccess: boolean;
|
||||||
|
setMid: (mid: string) => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
export interface FooterProps {
|
export interface FooterProps {
|
||||||
|
|||||||
@@ -19,7 +19,8 @@ export const HeaderNavigation = ({
|
|||||||
headerType,
|
headerType,
|
||||||
setMenuOn,
|
setMenuOn,
|
||||||
favoriteEdit,
|
favoriteEdit,
|
||||||
loginSuccess
|
loginSuccess,
|
||||||
|
setMid
|
||||||
}: HeaderNavigationProps) => {
|
}: HeaderNavigationProps) => {
|
||||||
const { mutateAsync: appAlarmUnreadCount } = useAppAlarmUnreadCountMutation();
|
const { mutateAsync: appAlarmUnreadCount } = useAppAlarmUnreadCountMutation();
|
||||||
|
|
||||||
@@ -53,6 +54,7 @@ export const HeaderNavigation = ({
|
|||||||
const onChangeToMid = (e: ChangeEvent<HTMLSelectElement>) => {
|
const onChangeToMid = (e: ChangeEvent<HTMLSelectElement>) => {
|
||||||
let value = e.target.value;
|
let value = e.target.value;
|
||||||
useStore.getState().UserStore.setMid(value);
|
useStore.getState().UserStore.setMid(value);
|
||||||
|
setMid(value);
|
||||||
};
|
};
|
||||||
|
|
||||||
const callAlarmCount = () => {
|
const callAlarmCount = () => {
|
||||||
|
|||||||
@@ -327,7 +327,7 @@ export const SubLayout = () => {
|
|||||||
}, []);
|
}, []);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if(!!mid){
|
if(!!mid){
|
||||||
callBusinessProperty();
|
// callBusinessProperty();
|
||||||
callFindAuthMethod();
|
callFindAuthMethod();
|
||||||
}
|
}
|
||||||
}, [mid]);
|
}, [mid]);
|
||||||
@@ -344,6 +344,7 @@ export const SubLayout = () => {
|
|||||||
favoriteEdit={ favoriteEdit }
|
favoriteEdit={ favoriteEdit }
|
||||||
key={ headerNavigationKey }
|
key={ headerNavigationKey }
|
||||||
loginSuccess={ loginSuccess }
|
loginSuccess={ loginSuccess }
|
||||||
|
setMid={ setMid }
|
||||||
/>
|
/>
|
||||||
{ loginSuccess &&
|
{ loginSuccess &&
|
||||||
<Outlet
|
<Outlet
|
||||||
|
|||||||
Reference in New Issue
Block a user