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