mid 수정

This commit is contained in:
focp212@naver.com
2025-10-30 09:21:29 +09:00
parent 11c0fc6269
commit 04fc07cfe5
3 changed files with 6 additions and 2 deletions

View File

@@ -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 {

View File

@@ -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 = () => {

View File

@@ -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