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;
favoriteEdit?: boolean;
loginSuccess: boolean;
setMid: (mid: string) => void;
};
export interface FooterProps {

View File

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

View File

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