물건 초기화
This commit is contained in:
parent
be152e3f4b
commit
ffc770f2dc
@ -130,6 +130,14 @@ export default function Header(props) {
|
||||
}
|
||||
}
|
||||
|
||||
// Home 클릭시 물건 리코일 비우기
|
||||
const moveHome = () => {
|
||||
setStuffSearch({
|
||||
...stuffSearch,
|
||||
code: 'DELETE',
|
||||
})
|
||||
}
|
||||
|
||||
const getMenuTemplate = (menus) => {
|
||||
return menus.map((menu) => {
|
||||
return (
|
||||
@ -140,7 +148,13 @@ export default function Header(props) {
|
||||
onMouseLeave={(e) => ToggleonMouse(e, 'remove', 'nav > ul')}
|
||||
>
|
||||
{menu.children.length === 0 ? (
|
||||
<Link key={`${menu.id}`} href={menu.url}>
|
||||
<Link
|
||||
key={`${menu.id}`}
|
||||
href={menu.url}
|
||||
onClick={() => {
|
||||
moveHome()
|
||||
}}
|
||||
>
|
||||
{getMessage(menu.name)}
|
||||
</Link>
|
||||
) : (
|
||||
|
||||
@ -166,7 +166,6 @@ export default function Stuff() {
|
||||
|
||||
// 진입시 그리드 데이터 조회
|
||||
useEffect(() => {
|
||||
console.log('stuffSearchParams:::', stuffSearchParams)
|
||||
if (stuffSearchParams?.code === 'S') {
|
||||
const params = {
|
||||
saleStoreId: session.storeId,
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import { atom } from 'recoil'
|
||||
import dayjs from 'dayjs'
|
||||
export const stuffSearchState = atom({
|
||||
key: `stuffSearchState/`,
|
||||
key: `stuffSearchState`,
|
||||
default: {
|
||||
schObjectNo: '', //물건번호
|
||||
schAddress: '', //물건주소
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user